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

itShouldThrowExceptionsOnDuplicateXmlFieldNames() public method

    public function itShouldThrowExceptionsOnDuplicateXmlFieldNames()
    {
        $class = new ClassMetadataInfo('Doctrine\\Tests\\OXM\\Mapping\\Entity');
        $class->mapField(array('fieldName' => 'squibbleMe', 'type' => 'string', 'name' => 'this'));
        $class->mapField(array('fieldName' => 'squibbleYou', 'type' => 'string', 'name' => 'this'));
    }