| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function testServiceFactory() |
||
| 19 | { |
||
| 20 | $client = new Client('mock', 'mock'); |
||
| 21 | |||
| 22 | foreach (ClassMap::SERVICES as $service => $class) { |
||
| 23 | $this->assertInstanceOf($class, $client->$service); |
||
| 24 | } |
||
| 25 | |||
| 26 | try { |
||
| 27 | $client->not_existant; |
||
|
|
|||
| 28 | |||
| 29 | $this->fail('Connector::__get should have thrown an error for a service that does not exist'); |
||
| 30 | } catch (BadMethodException $e) {} |
||
| 31 | } |
||
| 33 |