diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..e992650 --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +{"version":1,"defects":{"Affinity4\\Template\\Tests\\TokenizerTest::testAddRuleAndGetRules":6},"times":{"Affinity4\\Template\\Tests\\EngineTest::testSetStreamAndGetStream":0.008,"Affinity4\\Template\\Tests\\EngineTest::testCompile":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderVariables":0.002,"Affinity4\\Template\\Tests\\EngineTest::testRenderIfStatements":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderEachLoop":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderForeachLoop":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderForeachLoopWithKeysAndValues":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderForLoop":0.001,"Affinity4\\Template\\Tests\\EngineTest::testRenderWhileLoop":0.001,"Affinity4\\Template\\Tests\\EngineTest::testSetViewPathAndGetViewPath":0.001,"Affinity4\\Template\\Tests\\EngineTest::testSetLayoutAndGetLayout":0.001,"Affinity4\\Template\\Tests\\EngineTest::testAddBlocks":0.001,"Affinity4\\Template\\Tests\\EngineTest::testCompileBlocks":0.001,"Affinity4\\Template\\Tests\\EngineTest::testThrowsTemplateNotFoundException":0.001,"Affinity4\\Template\\Tests\\TokenizerTest::testAddRuleAndGetRules":0.001}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 963edb1..a636ee0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: php php: - - '7.0' - - '7.1' + - '7.4' + - '8.0' + - '8.1' before_script: composer install script: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 6ad7fe1..1447701 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,10 @@ } }, "require": { - "php": ">=7.0", - "mikey179/vfsStream": "^1.6" + "php": ">=7.4", + "mikey179/vfsstream": "^1.6" }, "require-dev": { - "phpunit/phpunit": "^6.1" + "phpunit/phpunit": "^8.0" } } diff --git a/tests/EngineTest.php b/tests/EngineTest.php index eefe131..7b78534 100644 --- a/tests/EngineTest.php +++ b/tests/EngineTest.php @@ -21,7 +21,7 @@ class EngineTest extends TestCase private $template; private $view_path; - public function setUp() + public function setUp(): void { $this->vfs = vfsStream::setup('tests'); $this->template = new Engine(new Affinity()); diff --git a/tests/TokenizerTest.php b/tests/TokenizerTest.php index d0342bb..2d05aea 100644 --- a/tests/TokenizerTest.php +++ b/tests/TokenizerTest.php @@ -17,7 +17,7 @@ class TokenizerTest extends TestCase { private $tokenizer; - public function setUp() + public function setUp(): void { $this->tokenizer = new Tokenizer; }