DDC-3103 - minor CS fixes/adjustments
This commit is contained in:
parent
f065a5c8b9
commit
677cea4748
@ -9,6 +9,9 @@ use Doctrine\ORM\Mapping\ClassMetadata;
|
|||||||
*/
|
*/
|
||||||
class DDC3103Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
class DDC3103Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @covers \Doctrine\ORM\Mapping\ClassMetadataInfo::__sleep
|
||||||
|
*/
|
||||||
public function testIssue()
|
public function testIssue()
|
||||||
{
|
{
|
||||||
$className = __NAMESPACE__ . '\\DDC3103ArticleId';
|
$className = __NAMESPACE__ . '\\DDC3103ArticleId';
|
||||||
@ -21,11 +24,8 @@ class DDC3103Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
'The isEmbeddedClass property should be true from the mapping data.'
|
'The isEmbeddedClass property should be true from the mapping data.'
|
||||||
);
|
);
|
||||||
|
|
||||||
$serialized = serialize($classMetadata);
|
|
||||||
$classMetadata = unserialize($serialized);
|
|
||||||
|
|
||||||
$this->assertTrue(
|
$this->assertTrue(
|
||||||
$classMetadata->isEmbeddedClass,
|
unserialize(serialize($classMetadata))->isEmbeddedClass,
|
||||||
'The isEmbeddedClass property should still be true after serialization and unserialization.'
|
'The isEmbeddedClass property should still be true after serialization and unserialization.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -42,5 +42,3 @@ class DDC3103ArticleId
|
|||||||
*/
|
*/
|
||||||
protected $nameValue;
|
protected $nameValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user