|
@@ 52-58 (lines=7) @@
|
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
public function testGetBody() |
| 53 |
|
{ |
| 54 |
|
$this->mock->expects( $this->once() )->method( 'getContent' ) |
| 55 |
|
->will( $this->returnValue( 'body' ) ); |
| 56 |
|
|
| 57 |
|
$this->assertEquals( 'body', $this->object->transform()->getBody() ); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
public function testGetClientAddress() |
|
@@ 61-67 (lines=7) @@
|
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
public function testGetClientAddress() |
| 62 |
|
{ |
| 63 |
|
$this->mock->expects( $this->once() )->method( 'ip' ) |
| 64 |
|
->will( $this->returnValue( '127.0.0.1' ) ); |
| 65 |
|
|
| 66 |
|
$this->assertEquals( '127.0.0.1', $this->object->transform()->getClientAddress() ); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
|
| 70 |
|
public function testGetTarget() |