Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function testFactory() |
||
16 | { |
||
17 | foreach (ClassMap::SERVICES as $name => $class) { |
||
18 | $this->assertInstanceOf($class, ServiceFactory::inst($this->getMockClient(), $name)); |
||
19 | $this->assertInstanceOf($class, ServiceFactory::inst($this->getMockClient(), strtoupper($name))); |
||
20 | } |
||
21 | |||
22 | $this->assertEquals(null, ServiceFactory::inst($this->getMockClient(), 'does_not_exist')); |
||
23 | } |
||
25 |