1
0
mirror of synced 2025-02-06 23:39:25 +03:00

DDC-3103 - minor CS fixes/adjustments

This commit is contained in:
Marco Pivetta 2014-04-29 13:12:17 +02:00
parent f065a5c8b9
commit 677cea4748

View File

@ -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;
} }