Lines Matching refs:factory

36         $factory = new MetadataFactory($driver);
37 $metadata = $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestParent');
64 $factory = new MetadataFactory($driver);
65 $metadata = $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestParent');
102 $factory = new MetadataFactory($driver);
104 … $subClassA = $factory->getMetadataForClass('Metadata\Tests\Fixtures\ComplexHierarchy\SubClassA');
108 … $subClassB = $factory->getMetadataForClass('Metadata\Tests\Fixtures\ComplexHierarchy\SubClassB');
122 $factory = new MetadataFactory($driver);
136 $factory->setCache($cache);
138 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
139 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
140 …$this->assertSame($metadata, reset($factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObje…
152 $factory = new MetadataFactory($driver);
154 $this->assertNull($factory->getMetadataForClass('stdClass'));
182 $factory = new MetadataFactory($driver);
183 $factory->setIncludeInterfaces(true);
185 $factory->getMetadataForClass('Metadata\Tests\Fixtures\ComplexHierarchy\SubClassA');
196 $factory = new MetadataFactory($driver);
197 $this->assertSame([], $factory->getAllClassNames());
203 $factory = new MetadataFactory($this->createMock('Metadata\Driver\DriverInterface'));
204 $factory->getAllClassNames();
234 $factory = new MetadataFactory($driver);
235 $factory->setCache($cache);
236 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
237 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
238 $this->assertNull($factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject'));
241 $factory = new MetadataFactory($driver);
242 $factory->setCache($cache);
243 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
244 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
245 $this->assertNull($factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject'));
270 $factory = new MetadataFactory($driver, 'Metadata\ClassHierarchyMetadata', true);
271 $factory->setCache($cache);
272 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
273 $this->assertNull($factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject'));
276 $factory = new MetadataFactory($driver, 'Metadata\ClassHierarchyMetadata', true);
277 $factory->setCache($cache);
278 $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject');
279 $this->assertNull($factory->getMetadataForClass('Metadata\Tests\Fixtures\TestObject'));