Added support PHPUnit 8
This commit is contained in:
@@ -45,7 +45,7 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
protected $cacheFile = 'tests/unit/testData/cache/metadata.php';
|
||||
protected $objCacheFile = 'tests/unit/testData/cache/objMetadata.php';
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp() : void
|
||||
{
|
||||
/*copy defaultCacheFile file to cache*/
|
||||
if (!file_exists($this->cacheFile)) {
|
||||
@@ -68,7 +68,7 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
$this->reflection->setProperty('objCacheFile', $this->objCacheFile);
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
protected function tearDown() : void
|
||||
{
|
||||
$this->object->clearChanges();
|
||||
$this->object = NULL;
|
||||
@@ -350,4 +350,4 @@ class MetadataTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
$this->assertObjectHasAttribute('type', $this->object->getObjects('entityDefs.User.fields.name'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user