mkdir() public method

This method is called in response to mkdir(). Note: In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support creating directories.
public mkdir ( string $path, integer $mode, integer $options ) : boolean
$path string Directory which should be created.
$mode integer The value passed to mkdir().
$options integer A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
return boolean TRUE on success or FALSE on failure.
 /**
  * @test
  */
 public function mkdirTest()
 {
     $path = 'mockScheme1://foo/bar';
     $mode = '0654';
     $options = STREAM_MKDIR_RECURSIVE;
     $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($path);
     $this->mockStreamWrapper->expects($this->once())->method('makeDirectory')->with($path, $mode, $options)->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->mkdir($path, $mode, $options));
 }