Commit beccb154 authored by Tibo's avatar Tibo

Fix tests

parent 3823c503
Pipeline #2596 passed with stage
in 15 seconds
# Exclude Composer managed dependencies.
/vendor/
.phpunit.result.cache
......@@ -3,7 +3,7 @@
namespace Test\KHerGe\JSON\Exception;
use KHerGe\JSON\Exception\Exception;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
/**
* Verifies that the base exception class functions as intended.
......
......@@ -16,7 +16,7 @@ use KHerGe\JSON\Exception\EncodeException;
use KHerGe\JSON\Exception\LintingException;
use KHerGe\JSON\Exception\ValidationException;
use KHerGe\JSON\JSON;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use function KHerGe\File\remove;
use function KHerGe\File\temp_file;
......@@ -345,7 +345,7 @@ class JSONTest extends TestCase
/**
* Creates a new JSON data manager.
*/
protected function setUp()
protected function setUp() : void
{
$this->json = new JSON();
}
......@@ -353,7 +353,7 @@ class JSONTest extends TestCase
/**
* Deletes the temporary paths.
*/
protected function tearDown()
protected function tearDown() : void
{
foreach ($this->temp as $path) {
if (file_exists($path)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment