|
|
@@ -1817,6 +1817,7 @@ class EntityTest extends TestCase
|
|
|
'emptyArray' => [],
|
|
|
'object' => new \stdClass(),
|
|
|
'string' => 'string',
|
|
|
+ 'stringZero' => '0',
|
|
|
'emptyString' => '',
|
|
|
'intZero' => 0,
|
|
|
'intNotZero' => 1,
|
|
|
@@ -1829,6 +1830,7 @@ class EntityTest extends TestCase
|
|
|
$this->assertTrue($entity->isEmpty('emptyArray'));
|
|
|
$this->assertFalse($entity->isEmpty('object'));
|
|
|
$this->assertFalse($entity->isEmpty('string'));
|
|
|
+ $this->assertFalse($entity->isEmpty('stringZero'));
|
|
|
$this->assertTrue($entity->isEmpty('emptyString'));
|
|
|
$this->assertFalse($entity->isEmpty('intZero'));
|
|
|
$this->assertFalse($entity->isEmpty('intNotZero'));
|
|
|
@@ -1849,6 +1851,7 @@ class EntityTest extends TestCase
|
|
|
'emptyArray' => [],
|
|
|
'object' => new \stdClass(),
|
|
|
'string' => 'string',
|
|
|
+ 'stringZero' => '0',
|
|
|
'emptyString' => '',
|
|
|
'intZero' => 0,
|
|
|
'intNotZero' => 1,
|
|
|
@@ -1861,6 +1864,7 @@ class EntityTest extends TestCase
|
|
|
$this->assertFalse($entity->hasValue('emptyArray'));
|
|
|
$this->assertTrue($entity->hasValue('object'));
|
|
|
$this->assertTrue($entity->hasValue('string'));
|
|
|
+ $this->assertTrue($entity->hasValue('stringZero'));
|
|
|
$this->assertFalse($entity->hasValue('emptyString'));
|
|
|
$this->assertTrue($entity->hasValue('intZero'));
|
|
|
$this->assertTrue($entity->hasValue('intNotZero'));
|