예제 #1
0
파일: YamlTest.php 프로젝트: ryan-senn/orm
 public function test_can_resolve()
 {
     $resolved = $this->meta->resolve(['paths' => ['entities'], 'dev' => true, 'proxies' => ['path' => 'path']]);
     $this->assertInstanceOf(Configuration::class, $resolved);
     $this->assertEquals('path', $resolved->getProxyDir());
     $this->assertInstanceOf(YamlDriver::class, $resolved->getMetadataDriverImpl());
     $this->assertContains('entities', $resolved->getMetadataDriverImpl()->getLocator()->getPaths());
 }
예제 #2
0
파일: YamlTest.php 프로젝트: Devitek/orm
 public function test_can_not_specify_extension_without_error()
 {
     $resolved = $this->meta->resolve(['paths' => 'entities']);
     $this->assertInstanceOf(YamlDriver::class, $resolved);
 }