|  | @@ 23-33 (lines=11) @@ | 
                                                            
                                    | 20 |  |         $this->maker = new MakeDirectory(); | 
                                                            
                                    | 21 |  |     } | 
                                                            
                                    | 22 |  |  | 
                                                            
                                    | 23 |  |     public function testCanMakeDirectory() | 
                                                            
                                    | 24 |  |     { | 
                                                            
                                    | 25 |  |         $file = new LocalFile(static::$dir . 'test/file'); | 
                                                            
                                    | 26 |  |  | 
                                                            
                                    | 27 |  |         static::assertFalse(file_exists($file->getDirectory())); | 
                                                            
                                    | 28 |  |  | 
                                                            
                                    | 29 |  |         $retFile = $this->maker->makeDirectory($file); | 
                                                            
                                    | 30 |  |  | 
                                                            
                                    | 31 |  |         static::assertTrue(file_exists($file->getDirectory())); | 
                                                            
                                    | 32 |  |         static::assertSame($file, $retFile); | 
                                                            
                                    | 33 |  |     } | 
                                                            
                                    | 34 |  |  | 
                                                            
                                    | 35 |  |     public function testCanMakeDirectoryWithSpecificUMode() | 
                                                            
                                    | 36 |  |     { | 
                                                                                
                                |  | @@ 47-56 (lines=10) @@ | 
                                                            
                                    | 44 |  |         static::assertSame($retFile, $file); | 
                                                            
                                    | 45 |  |     } | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  |     public function testCanCallMakeDirectoryWithAnExistingFolder() | 
                                                            
                                    | 48 |  |     { | 
                                                            
                                    | 49 |  |         $file = new LocalFile(static::$dir . 'no_dir_file'); | 
                                                            
                                    | 50 |  |  | 
                                                            
                                    | 51 |  |         static::assertTrue(file_exists($file->getDirectory())); | 
                                                            
                                    | 52 |  |  | 
                                                            
                                    | 53 |  |         $retFile = $this->maker->makeDirectory($file); | 
                                                            
                                    | 54 |  |  | 
                                                            
                                    | 55 |  |         static::assertSame($retFile, $file); | 
                                                            
                                    | 56 |  |     } | 
                                                            
                                    | 57 |  |  | 
                                                            
                                    | 58 |  |     public function testCreatingADirectoryWithoutPermissionThrowsAnException() | 
                                                            
                                    | 59 |  |     { | 
                                                                                
                                |  | @@ 35-45 (lines=11) @@ | 
                                                            
                                    | 32 |  |         static::assertSame($file, $retFile); | 
                                                            
                                    | 33 |  |     } | 
                                                            
                                    | 34 |  |  | 
                                                            
                                    | 35 |  |     public function testCanMakeDirectoryWithSpecificUMode() | 
                                                            
                                    | 36 |  |     { | 
                                                            
                                    | 37 |  |         $file = new LocalFile(static::$dir . 'umode_test/file'); | 
                                                            
                                    | 38 |  |  | 
                                                            
                                    | 39 |  |         static::assertFalse(file_exists($file->getDirectory())); | 
                                                            
                                    | 40 |  |  | 
                                                            
                                    | 41 |  |         $retFile = $this->maker->makeDirectory($file, MakeDirectory::VISIBILITY_PUBLIC); | 
                                                            
                                    | 42 |  |  | 
                                                            
                                    | 43 |  |         static::assertEquals(0755, fileperms($file->getDirectory()) & 0777); | 
                                                            
                                    | 44 |  |         static::assertSame($retFile, $file); | 
                                                            
                                    | 45 |  |     } | 
                                                            
                                    | 46 |  |  | 
                                                            
                                    | 47 |  |     public function testCanCallMakeDirectoryWithAnExistingFolder() | 
                                                            
                                    | 48 |  |     { |