Added support PHPUnit 8

This commit is contained in:
Taras Machyshyn
2019-08-27 14:57:31 +03:00
parent 607ee9a080
commit 1102e9f1e8
34 changed files with 100 additions and 96 deletions
+3 -3
View File
@@ -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'));
}
}
}