Make count( use global namespace

This commit is contained in:
Dennis Eichhorn 2019-02-11 22:25:57 +01:00
parent ebad6f044f
commit 5db3d81d25
3 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
$for = ManyToManyDirectModelMapper::getFor($id, 'to'); $for = ManyToManyDirectModelMapper::getFor($id, 'to');
self::assertEquals(\reset($this->model->hasManyDirect)->string, \reset($for)->string); self::assertEquals(\reset($this->model->hasManyDirect)->string, \reset($for)->string);
self::assertEquals(1, count(BaseModelMapper::getAll())); self::assertEquals(1, \count(BaseModelMapper::getAll()));
} }
public function testReadArray() : void public function testReadArray() : void
@ -214,7 +214,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
$for = ManyToManyDirectModelMapper::getForArray($id, 'to'); $for = ManyToManyDirectModelMapper::getForArray($id, 'to');
self::assertEquals(\reset($this->modelArray['hasManyDirect'])['string'], \reset($for)['string']); self::assertEquals(\reset($this->modelArray['hasManyDirect'])['string'], \reset($for)['string']);
self::assertEquals(1, count(BaseModelMapper::getAllArray())); self::assertEquals(1, \count(BaseModelMapper::getAllArray()));
} }
public function testUpdate() : void public function testUpdate() : void

View File

@ -19,7 +19,7 @@ class DomActionTest extends \PHPUnit\Framework\TestCase
{ {
public function testEnums() : void public function testEnums() : void
{ {
self::assertEquals(9, count(DomAction::getConstants())); self::assertEquals(9, \count(DomAction::getConstants()));
self::assertEquals(DomAction::getConstants(), array_unique(DomAction::getConstants())); self::assertEquals(DomAction::getConstants(), array_unique(DomAction::getConstants()));
self::assertEquals(0, DomAction::CREATE_BEFORE); self::assertEquals(0, DomAction::CREATE_BEFORE);

View File

@ -19,7 +19,7 @@ class NotifyTypeTest extends \PHPUnit\Framework\TestCase
{ {
public function testEnums() : void public function testEnums() : void
{ {
self::assertEquals(5, count(NotifyType::getConstants())); self::assertEquals(5, \count(NotifyType::getConstants()));
self::assertEquals(NotifyType::getConstants(), array_unique(NotifyType::getConstants())); self::assertEquals(NotifyType::getConstants(), array_unique(NotifyType::getConstants()));
self::assertEquals(0, NotifyType::BINARY); self::assertEquals(0, NotifyType::BINARY);