diff --git a/.gitignore b/.gitignore index c422267..83a0b0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,2 @@ -composer.phar +.phpunit.result.cache /vendor/ - -# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -# composer.lock diff --git a/composer.json b/composer.json index d6ce4e4..fe59f98 100644 --- a/composer.json +++ b/composer.json @@ -7,12 +7,12 @@ ], "license": "MIT", "require-dev": { - "phpunit/phpunit": "7.0.2", - "squizlabs/php_codesniffer": "3.2.3", - "php-coveralls/php-coveralls": "~2.1.0" + "phpunit/phpunit": "^9.5.4", + "squizlabs/php_codesniffer": "^3.5.8", + "php-coveralls/php-coveralls": "^2.4.3" }, "require": { - "phpugph/components": "~2.2.0" + "phpugph/components": "^1.0.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 31b3d8d..f6e8621 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,15 +1,14 @@ - - @@ -22,14 +21,14 @@ - - + + ./src - - ./vendor - ./test - src/helpers.php - - - + + + ./vendor + ./test + src/helpers.php + + diff --git a/test/HandlebarsCompiler.php b/test/HandlebarsCompiler.php index 6748ffe..795b15f 100644 --- a/test/HandlebarsCompiler.php +++ b/test/HandlebarsCompiler.php @@ -41,7 +41,7 @@ class Handlebars_HandlebarsCompiler_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { $handler = new HandlebarsHandler; $this->source = file_get_contents(__DIR__.'/assets/tokenizer.html'); @@ -55,7 +55,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { } diff --git a/test/HandlebarsData.php b/test/HandlebarsData.php index 71df1a2..a34ba25 100644 --- a/test/HandlebarsData.php +++ b/test/HandlebarsData.php @@ -24,7 +24,7 @@ class Handlebars_HandlebarsData_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { $this->object = new HandlebarsData([ 'product_id' => 123, @@ -41,7 +41,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { } diff --git a/test/HandlebarsException.php b/test/HandlebarsException.php index 61abf8a..a2a31e5 100644 --- a/test/HandlebarsException.php +++ b/test/HandlebarsException.php @@ -24,7 +24,7 @@ class Handlebars_HandlebarsException_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { $this->object = new HandlebarsException; } @@ -33,7 +33,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { } diff --git a/test/HandlebarsHandler.php b/test/HandlebarsHandler.php index cc8aa2e..240e547 100644 --- a/test/HandlebarsHandler.php +++ b/test/HandlebarsHandler.php @@ -26,7 +26,7 @@ class Handlebars_HandlebarsHandler_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { $this->object = new HandlebarsHandler; } @@ -35,7 +35,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { } diff --git a/test/HandlebarsRuntime.php b/test/HandlebarsRuntime.php index 3f3b30a..b1d6d96 100644 --- a/test/HandlebarsRuntime.php +++ b/test/HandlebarsRuntime.php @@ -19,7 +19,7 @@ class Handlebars_HandlebarsRuntime_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { //reset the helpers and partials after every test HandlebarsHandler::i()->reset(); @@ -29,7 +29,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { } diff --git a/test/HandlebarsTokenizer.php b/test/HandlebarsTokenizer.php index d746a0d..ece87db 100644 --- a/test/HandlebarsTokenizer.php +++ b/test/HandlebarsTokenizer.php @@ -29,7 +29,7 @@ class Handlebars_HandlebarsTokenizer_Test extends TestCase * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ - protected function setUp() + protected function setUp(): void { $this->source = file_get_contents(__DIR__.'/assets/tokenizer.html'); $this->object = new HandlebarsTokenizer($this->source); @@ -39,7 +39,7 @@ protected function setUp() * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ - protected function tearDown() + protected function tearDown(): void { }