| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 1 | public function testCreateHere() |
|
| 19 | { |
||
| 20 | 1 | $location = SourceLocation::createHere('foobar', ['foo' => 'bar']); |
|
| 21 | |||
| 22 | 1 | $this->assertContains('tests/Unit/Model/SourceLocationTest.php', $location->getPath()); |
|
| 23 | 1 | $this->assertEquals(20, $location->getLine()); |
|
| 24 | |||
| 25 | 1 | $this->assertEquals('foobar', $location->getMessage()); |
|
| 26 | 1 | $this->assertEquals(['foo' => 'bar'], $location->getContext()); |
|
| 27 | 1 | } |
|
| 28 | } |
||
| 29 |