DDC-3120 - add failing test for un-serialization of an internal PHP class
This commit is contained in:
parent
2c3126353c
commit
d52dd39592
@ -1100,6 +1100,16 @@ class ClassMetadataTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
|
|
||||||
$this->assertFalse($class->isIdentifier('foo'));
|
$this->assertFalse($class->isIdentifier('foo'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group DDC-3120
|
||||||
|
*/
|
||||||
|
public function testCanInstantiateInternalPhpClassSubclass()
|
||||||
|
{
|
||||||
|
$classMetadata = new ClassMetadata(__NAMESPACE__ . '\\MyArrayObjectEntity');
|
||||||
|
|
||||||
|
$this->assertInstanceOf(__NAMESPACE__ . '\\MyArrayObjectEntity', $classMetadata->newInstance());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1136,3 +1146,7 @@ class MyPrefixNamingStrategy extends \Doctrine\ORM\Mapping\DefaultNamingStrategy
|
|||||||
return strtolower($this->classToTableName($className)) . '_' . $propertyName;
|
return strtolower($this->classToTableName($className)) . '_' . $propertyName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class MyArrayObjectEntity extends \ArrayObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user