File tree 22 files changed +44
-21
lines changed
22 files changed +44
-21
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ git submodule init
15
15
git submodule update
16
16
composer install
17
17
build/runphp build/gen_test.php
18
- phpunit
18
+ build/test
19
19
```
Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ function genTestForClass($classname) {
28
28
use LightnCandy\\LightnCandy;
29
29
use LightnCandy\\Runtime;
30
30
use LightnCandy\\SafeString;
31
+ use PHPUnit\\Framework\\TestCase;
31
32
32
33
require_once(__DIR__ . '/test_util.php');
33
34
34
- class {$ classname }Test extends PHPUnit_Framework_TestCase
35
+ class {$ classname }Test extends TestCase
35
36
{
36
37
37
38
VAR
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ vendor/bin/phpunit --bootstrap vendor/autoload.php
Original file line number Diff line number Diff line change 14
14
"php" : " >=5.4.0"
15
15
},
16
16
"require-dev" : {
17
- "phpunit/phpunit" : " 4.8.35 "
17
+ "phpunit/phpunit" : " 8.0.6 "
18
18
},
19
19
"autoload" : {
20
20
"psr-4" : {
Original file line number Diff line number Diff line change 12
12
</filter >
13
13
14
14
<logging >
15
- <log type =" coverage-html" target =" build/result/coverage" title = " lightncandy " charset = " UTF-8 " />
15
+ <log type =" coverage-html" target =" build/result/coverage" />
16
16
<log type =" coverage-text" target =" php://stdout" />
17
17
</logging >
18
18
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class CompilerTest extends PHPUnit_Framework_TestCase
12
+ class CompilerTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Compiler::getFuncName
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class ContextTest extends PHPUnit_Framework_TestCase
12
+ class ContextTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Context::updateHelperTable
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class EncoderTest extends PHPUnit_Framework_TestCase
12
+ class EncoderTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Encoder::raw
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class ExporterTest extends PHPUnit_Framework_TestCase
12
+ class ExporterTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Exporter::closure
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class ExpressionTest extends PHPUnit_Framework_TestCase
12
+ class ExpressionTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Expression::boolString
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class LightnCandyTest extends PHPUnit_Framework_TestCase
12
+ class LightnCandyTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\LightnCandy::compilePartial
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class ParserTest extends PHPUnit_Framework_TestCase
12
+ class ParserTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Parser::getExpression
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class PartialTest extends PHPUnit_Framework_TestCase
12
+ class PartialTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Partial::prePartial
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class RuntimeTest extends PHPUnit_Framework_TestCase
12
+ class RuntimeTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Runtime::debug
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class SafeStringTest extends PHPUnit_Framework_TestCase
12
+ class SafeStringTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\SafeString::stripExtendedComments
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class TokenTest extends PHPUnit_Framework_TestCase
12
+ class TokenTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Token::toString
Original file line number Diff line number Diff line change 5
5
use LightnCandy \LightnCandy ;
6
6
use LightnCandy \Runtime ;
7
7
use LightnCandy \SafeString ;
8
+ use PHPUnit \Framework \TestCase ;
8
9
9
10
require_once (__DIR__ . '/test_util.php ' );
10
11
11
- class ValidatorTest extends PHPUnit_Framework_TestCase
12
+ class ValidatorTest extends TestCase
12
13
{
13
14
/**
14
15
* @covers LightnCandy\Validator::delimiter
Original file line number Diff line number Diff line change 2
2
3
3
use LightnCandy \LightnCandy ;
4
4
use LightnCandy \Runtime ;
5
+ use PHPUnit \Framework \TestCase ;
6
+
5
7
require_once ('tests/helpers_for_test.php ' );
6
8
7
9
$ tmpdir = sys_get_temp_dir ();
@@ -29,7 +31,7 @@ function stop_catch_error_log() {
29
31
}, file ($ errlog_fn ));
30
32
}
31
33
32
- class errorTest extends PHPUnit_Framework_TestCase
34
+ class errorTest extends TestCase
33
35
{
34
36
public function testException ()
35
37
{
Original file line number Diff line number Diff line change 2
2
3
3
use LightnCandy \LightnCandy ;
4
4
use LightnCandy \Runtime ;
5
+ use PHPUnit \Framework \TestCase ;
5
6
6
7
$ tmpdir = sys_get_temp_dir ();
7
8
$ hb_test_flag = LightnCandy::FLAG_HANDLEBARSJS_FULL | LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_EXTHELPER ;
@@ -62,7 +63,7 @@ static public function createFrame($data) {
62
63
}
63
64
}
64
65
65
- class HandlebarsSpecTest extends PHPUnit_Framework_TestCase
66
+ class HandlebarsSpecTest extends TestCase
66
67
{
67
68
/**
68
69
* @dataProvider jsonSpecProvider
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use LightnCandy \LightnCandy ;
4
+ use PHPUnit \Framework \TestCase ;
4
5
5
6
$ tmpdir = sys_get_temp_dir ();
6
7
@@ -9,7 +10,7 @@ function getFunctionCode($func) {
9
10
return $ v ;
10
11
}
11
12
12
- class MustacheSpecTest extends PHPUnit_Framework_TestCase
13
+ class MustacheSpecTest extends TestCase
13
14
{
14
15
/**
15
16
* @dataProvider jsonSpecProvider
Original file line number Diff line number Diff line change 2
2
3
3
use LightnCandy \LightnCandy ;
4
4
use LightnCandy \Runtime ;
5
+ use PHPUnit \Framework \TestCase ;
6
+
5
7
require_once ('tests/helpers_for_test.php ' );
6
8
7
9
$ tmpdir = sys_get_temp_dir ();
8
10
9
- class regressionTest extends PHPUnit_Framework_TestCase
11
+ class regressionTest extends TestCase
10
12
{
11
13
/**
12
14
* @dataProvider issueProvider
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use LightnCandy \LightnCandy ;
4
+ use PHPUnit \Framework \TestCase ;
5
+
4
6
require_once ('tests/helpers_for_test.php ' );
5
7
6
- class usageTest extends PHPUnit_Framework_TestCase
8
+ class usageTest extends TestCase
7
9
{
8
10
/**
9
11
* @dataProvider compileProvider
You can’t perform that action at this time.
0 commit comments