Bravo3\Orm\Tests\Mappers\Annotation\AnnotationMapperTest::testStuff PHP Method

testStuff() public method

public testStuff ( )
    public function testStuff()
    {
        $mapper = new AnnotationMapper();
        $product = new Product();
        $product_meta = $mapper->getEntityMetadata(Reader::getEntityClassName($product));
        $this->assertEquals("products", $product_meta->getTableName());
        $bad = new BadEntity();
        $bad_meta = $mapper->getEntityMetadata(Reader::getEntityClassName($bad));
        $this->assertEquals("bad_entity", $bad_meta->getTableName());
    }
AnnotationMapperTest