Skip to content

Commit

Permalink
Updated vfsstream and phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewatts committed May 25, 2022
1 parent 8c62dd4 commit d897cca
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -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}}
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion tests/EngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion tests/TokenizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TokenizerTest extends TestCase
{
private $tokenizer;

public function setUp()
public function setUp(): void
{
$this->tokenizer = new Tokenizer;
}
Expand Down

0 comments on commit d897cca

Please sign in to comment.