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

itShouldInferGettersProperly() public method

    public function itShouldInferGettersProperly()
    {
        $class = new ClassMetadataInfo('Doctrine\\Tests\\OXM\\Mapping\\Entity');
        $class->mapField(array('fieldName' => 'squibble', 'type' => 'string'));
        $mapping = $class->getFieldMapping('squibble');
        // todo - don't like relying on internal implementation
        $this->assertEquals('getSquibble', $mapping['getMethod']);
        $this->assertEquals('setSquibble', $mapping['setMethod']);
    }