Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function testCallWithArguments() { |
||
47 | |||
48 | $instance = new CallFuncMemorySniffer(); |
||
49 | |||
50 | $this->assertEquals( |
||
51 | 'Foo-abc', |
||
52 | $instance->call( function( $arg ) { return 'Foo-'. $arg; }, array( 'abc' ) ) |
||
53 | ); |
||
54 | |||
55 | $this->assertInternalType( |
||
56 | 'integer', |
||
57 | $instance->getMemoryUsed() |
||
58 | ); |
||
59 | |||
60 | $this->assertInternalType( |
||
61 | 'float', |
||
62 | $instance->getTimeUsed() |
||
63 | ); |
||
64 | } |
||
65 | |||
67 |