Exemple #1
0
 public function test_can_resolve()
 {
     $resolved = $this->meta->resolve(['paths' => ['entities'], 'dev' => true, 'proxies' => ['path' => 'path'], 'mapping_file' => 'mappings']);
     $this->assertInstanceOf(Configuration::class, $resolved);
     $this->assertEquals('path', $resolved->getProxyDir());
     $this->assertInstanceOf(ConfigDriver::class, $resolved->getMetadataDriverImpl());
 }
Exemple #2
0
 public function test_can_resolve()
 {
     $resolved = $this->meta->resolve(['paths' => ['entities'], 'dev' => true, 'proxies' => ['path' => 'path'], 'simple' => false]);
     $this->assertInstanceOf(Configuration::class, $resolved);
     $this->assertEquals('path', $resolved->getProxyDir());
     $this->assertInstanceOf(AnnotationDriver::class, $resolved->getMetadataDriverImpl());
     $this->assertContains('entities', $resolved->getMetadataDriverImpl()->getPaths());
 }
Exemple #3
0
 public function test_can_resolve()
 {
     $resolved = $this->meta->resolve(['paths' => ['entities'], 'dev' => true, 'proxies' => ['path' => 'path'], 'simple' => false]);
     $this->assertInstanceOf(MappingDriver::class, $resolved);
     $this->assertInstanceOf(AnnotationDriver::class, $resolved);
 }