From 6424fc975228a906934a3aab41d748b0fe31d1c4 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 25 Sep 2019 23:36:10 -0700 Subject: [PATCH] Support phpunit v8 Signed-off-by: Sunil Mohan Adapa --- composer.json | 2 +- tests/LoggerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e33f70c..85ddce8 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "psr/log": "^1.0.0" }, "require-dev": { - "phpunit/phpunit": "^6.0.0" + "phpunit/phpunit": "^8.0.0" }, "license": "MIT", "authors": [ diff --git a/tests/LoggerTest.php b/tests/LoggerTest.php index 8cae00e..d128c47 100644 --- a/tests/LoggerTest.php +++ b/tests/LoggerTest.php @@ -10,7 +10,7 @@ class LoggerTest extends PHPUnit\Framework\TestCase private $logger; private $errLogger; - public function setUp() + public function setUp(): void { $this->logPath = __DIR__.'/logs'; $this->logger = new Logger($this->logPath, LogLevel::DEBUG, array ('flushFrequency' => 1)); @@ -83,7 +83,7 @@ private function getLastLine($filename) return trim($t); } - public function tearDown() { + public function tearDown(): void { #@unlink($this->logger->getLogFilePath()); #@unlink($this->errLogger->getLogFilePath()); }