/**
* @covers \eZ\Publish\Core\Persistence\FieldTypeRegistry::getFieldType
*
* @expectedException \RuntimeException
*
* @return void
*/
public function testGetNotCallableOrInstance()
{
$registry = new FieldTypeRegistry(array("some-type" => new \DateTime()));
$registry->getFieldType("some-type");
}