| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function testCallbackIsGivenArguments() { |
||
| 47 | $firstArgument = null; |
||
| 48 | $secondArgument = null; |
||
| 49 | |||
| 50 | $comparer = new CallbackComparer( function( $a, $b ) use ( &$firstArgument, &$secondArgument ) { |
||
| 51 | $firstArgument = $a; |
||
| 52 | $secondArgument = $b; |
||
| 53 | return true; |
||
| 54 | } ); |
||
| 55 | |||
| 56 | $comparer->valuesAreEqual( 42, 23 ); |
||
| 57 | |||
| 58 | $this->assertSame( 42, $firstArgument ); |
||
| 59 | $this->assertSame( 23, $secondArgument ); |
||
| 60 | } |
||
| 61 | |||
| 63 |