Doctrine\Tests\OXM\Mapping\ClassMetadataInfoTest::itShouldThrowExceptionsOnDuplicateFieldNames PHP 메소드

itShouldThrowExceptionsOnDuplicateFieldNames() 공개 메소드

    public function itShouldThrowExceptionsOnDuplicateFieldNames()
    {
        $class = new ClassMetadataInfo('Doctrine\\Tests\\OXM\\Mapping\\Entity');
        $class->mapField(array('fieldName' => 'squibble', 'type' => 'string'));
        $class->mapField(array('fieldName' => 'squibble', 'type' => 'string'));
    }