Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testCallWithoutArguments() { |
||
27 | |||
28 | $instance = new CallFuncMemorySniffer(); |
||
29 | |||
30 | $this->assertEquals( |
||
31 | 'Foo', |
||
32 | $instance->call( function(){ return 'Foo'; } ) |
||
33 | ); |
||
34 | |||
35 | $this->assertInternalType( |
||
36 | 'integer', |
||
37 | $instance->getMemoryUsed() |
||
38 | ); |
||
39 | |||
40 | $this->assertInternalType( |
||
41 | 'float', |
||
42 | $instance->getTimeUsed() |
||
43 | ); |
||
44 | } |
||
45 | |||
67 |