Fixed phpUnit test
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false"
|
||||
bootstrap="./tests/bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="Default">
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user