コード例 #1
0
 /**
  * Test setting the current working directory.
  *
  * @since 0.1.0
  */
 public function test_chdir()
 {
     $this->assertTrue($this->mock_fs->add_file('/test', array('type' => 'dir')));
     $this->assertTrue($this->fs->chdir('/test'));
     $this->assertEquals('/test', $this->fs->cwd());
 }