@@ 38-44 (lines=7) @@ | ||
35 | } |
|
36 | ||
37 | ||
38 | public function testIsdir() |
|
39 | { |
|
40 | $this->mock->expects( $this->once() )->method( 'getMetadata' ) |
|
41 | ->will( $this->returnValue( array( 'type' => 'dir' ) ) ); |
|
42 | ||
43 | $this->assertTrue( $this->object->isdir( 'test' ) ); |
|
44 | } |
|
45 | ||
46 | ||
47 | public function testIsdirFalse() |
|
@@ 47-53 (lines=7) @@ | ||
44 | } |
|
45 | ||
46 | ||
47 | public function testIsdirFalse() |
|
48 | { |
|
49 | $this->mock->expects( $this->once() )->method( 'getMetadata' ) |
|
50 | ->will( $this->returnValue( array( 'type' => 'file' ) ) ); |
|
51 | ||
52 | $this->assertFalse( $this->object->isdir( 'test' ) ); |
|
53 | } |
|
54 | ||
55 | ||
56 | public function testMkdir() |