| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 10 | public static function assertSameAsToString($expected, $test_instance) |
|
| 26 | { |
||
| 27 | try { |
||
| 28 | 10 | $actual = (string) $test_instance; |
|
| 29 | 9 | TestCase::assertSame($expected, $actual); |
|
| 30 | 10 | } catch (\PHPUnit_Framework_Error $error) { |
|
| 31 | 1 | throw new \PHPUnit_Framework_ExpectationFailedException("Cannot convert object to string"); |
|
| 32 | } |
||
| 33 | 8 | } |
|
| 34 | } |
||
| 35 |