add phpunit

This commit is contained in:
Jaeger
2018-12-10 00:13:16 +08:00
parent 6d182ff061
commit 661bc3168d
6 changed files with 108 additions and 1 deletions

20
tests/TestCaseBase.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
/**
* Created by PhpStorm.
* User: x
* Date: 2018/12/9
* Time: 11:43 PM
*/
namespace Tests;
use PHPUnit\Framework\TestCase;
class TestCaseBase extends TestCase
{
public function getSnippet($name)
{
return file_get_contents(__DIR__.'/assets/'.$name.'.html');
}
}