Doctrine\Tests\OXM\Mapping\ClassMetadataInfoTest::itShouldThrowExceptionsOnDuplicateFieldNames PHP Method

itShouldThrowExceptionsOnDuplicateFieldNames() public method

    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'));
    }