class StaticPHPDriverTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/StaticPHPDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\StaticPHPDriverTest
Hierarchy
- class \Doctrine\Tests\Common\Persistence\Mapping\StaticPHPDriverTest extends \Doctrine\Tests\DoctrineTestCase
Expanded class hierarchy of StaticPHPDriverTest
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ StaticPHPDriverTest.php, line 8
Namespace
Doctrine\Tests\Common\Persistence\MappingView source
class StaticPHPDriverTest extends DoctrineTestCase {
public function testLoadMetadata() {
$metadata = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
$metadata
->expects($this
->once())
->method('getFieldNames');
$driver = new StaticPHPDriver(array(
__DIR__,
));
$driver
->loadMetadataForClass(__NAMESPACE__ . '\\TestEntity', $metadata);
}
public function testGetAllClassNames() {
$driver = new StaticPHPDriver(array(
__DIR__,
));
$classNames = $driver
->getAllClassNames();
$this
->assertContains('Doctrine\\Tests\\Common\\Persistence\\Mapping\\TestEntity', $classNames);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StaticPHPDriverTest:: |
public | function | ||
StaticPHPDriverTest:: |
public | function |