| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php namespace League\Fractal\Test; |
||
| 17 | public function testGetTransformer() |
||
| 18 | { |
||
| 19 | $item = new Item($this->simpleItem, function () {}); |
||
| 20 | |||
| 21 | $this->assertTrue(is_callable($item->getTransformer())); |
||
| 22 | |||
| 23 | $transformer = 'thismightbeacallablestring'; |
||
| 24 | $item = new Item($this->simpleItem, $transformer); |
||
| 25 | |||
| 26 | $this->assertSame($item->getTransformer(), $transformer); |
||
| 27 | } |
||
| 28 | |||
| 50 |