eZ\Publish\Core\Repository\Tests\Helper\FieldTypeRegistryTest::testGetClosureFieldTypeThrowsRuntimeExceptionIncorrectType PHP Méthode

testGetClosureFieldTypeThrowsRuntimeExceptionIncorrectType() public méthode

    public function testGetClosureFieldTypeThrowsRuntimeExceptionIncorrectType()
    {
        $registry = new FieldTypeRegistry(array('none' => $this->getClosure("I'm not a field type")));
        $registry->getFieldType('none');
    }