Exemple #1
0
 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());
 }
Exemple #2
0
 public function test_can_not_specify_extension_without_error()
 {
     $resolved = $this->meta->resolve(['paths' => 'entities']);
     $this->assertInstanceOf(YamlDriver::class, $resolved);
 }