|
@@ 180-188 (lines=9) @@
|
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
|
| 180 |
|
public function testHas() |
| 181 |
|
{ |
| 182 |
|
$this->mock->expects( $this->once() )->method( 'has' ) |
| 183 |
|
->will( $this->returnValue( true ) ); |
| 184 |
|
|
| 185 |
|
$result = $this->object->has( 'test' ); |
| 186 |
|
|
| 187 |
|
$this->assertTrue( $result ); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
|
| 191 |
|
public function testHasFalse() |
|
@@ 191-199 (lines=9) @@
|
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
|
| 191 |
|
public function testHasFalse() |
| 192 |
|
{ |
| 193 |
|
$this->mock->expects( $this->once() )->method( 'has' ) |
| 194 |
|
->will( $this->returnValue( false ) ); |
| 195 |
|
|
| 196 |
|
$result = $this->object->has( 'test' ); |
| 197 |
|
|
| 198 |
|
$this->assertFalse( $result ); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
|
| 202 |
|
public function testRead() |