Fixed phpUnit test
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
convertWarningsToExceptions="true"
|
convertWarningsToExceptions="true"
|
||||||
processIsolation="false"
|
processIsolation="false"
|
||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
syntaxCheck="false"
|
|
||||||
bootstrap="./tests/bootstrap.php">
|
bootstrap="./tests/bootstrap.php">
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
namespace CloudObjects\PhpMAE;
|
namespace CloudObjects\PhpMAE;
|
||||||
|
|
||||||
use ML\IRI\IRI;
|
use ML\IRI\IRI;
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class ClassValidatorTest extends \PHPUnit_Framework_TestCase {
|
class ClassValidatorTest extends TestCase {
|
||||||
|
|
||||||
private $validator;
|
private $validator;
|
||||||
|
|
||||||
@@ -12,11 +13,12 @@ class ClassValidatorTest extends \PHPUnit_Framework_TestCase {
|
|||||||
return file_get_contents(__DIR__.'/fixtures/'.$filename);
|
return file_get_contents(__DIR__.'/fixtures/'.$filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp(): void {
|
||||||
$this->validator = new ClassValidator;
|
$this->validator = new ClassValidator;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testValidate() {
|
public function testValidate() {
|
||||||
|
$this->addToAssertionCount(1);
|
||||||
$this->validator->validate($this->loadFromFile('class1.php'),
|
$this->validator->validate($this->loadFromFile('class1.php'),
|
||||||
new IRI('coid://example.com/TestClass1'));
|
new IRI('coid://example.com/TestClass1'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user