コード例 #1
0
ファイル: Wrapper.php プロジェクト: Metalaka/Protocol
 public function case_dir_opendir_not_a_resource()
 {
     $this->given($this->function->opendir = function ($path) use(&$_path) {
         $_path = $path;
         return false;
     }, $wrapper = new SUT(), $path = 'hoa://Test/Vfs/Bar?type=directory', $options = 0)->when($result = $wrapper->dir_opendir($path, $options))->then->boolean($result)->isFalse()->string(SUT::realPath($path, true))->isEqualTo($_path)->variable($wrapper->getStream())->isNull()->variable($wrapper->getStreamName())->isNull();
 }