From 56342e24182c9585d97288894eea1b01fdde88eb Mon Sep 17 00:00:00 2001 From: Lukas Rosenstock Date: Fri, 19 Jun 2026 17:14:44 +0000 Subject: [PATCH] Fixed phpUnit test --- phpunit.xml | 1 - tests/ClassValidatorTest.php | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 631fa50..f1d20ce 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -7,7 +7,6 @@ convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" - syntaxCheck="false" bootstrap="./tests/bootstrap.php"> diff --git a/tests/ClassValidatorTest.php b/tests/ClassValidatorTest.php index 2d0288f..94ffb91 100644 --- a/tests/ClassValidatorTest.php +++ b/tests/ClassValidatorTest.php @@ -3,8 +3,9 @@ namespace CloudObjects\PhpMAE; use ML\IRI\IRI; +use PHPUnit\Framework\TestCase; -class ClassValidatorTest extends \PHPUnit_Framework_TestCase { +class ClassValidatorTest extends TestCase { private $validator; @@ -12,11 +13,12 @@ class ClassValidatorTest extends \PHPUnit_Framework_TestCase { return file_get_contents(__DIR__.'/fixtures/'.$filename); } - protected function setUp() { + protected function setUp(): void { $this->validator = new ClassValidator; } public function testValidate() { + $this->addToAssertionCount(1); $this->validator->validate($this->loadFromFile('class1.php'), new IRI('coid://example.com/TestClass1')); }