Example #1
0
 public function case_metadata_access()
 {
     $this->given($this->function->chmod = function ($path, $mode) use(&$_path, &$_mode) {
         $_path = $path;
         $_mode = $mode;
         return true;
     }, $path = 'foo', $mode = 0755, $wrapper = new SUT())->when($result = $wrapper->stream_metadata('foo', STREAM_META_ACCESS, $mode))->then->boolean($result)->isTrue()->string($path)->isEqualTo($_path)->integer($mode)->isEqualTo($_mode);
 }
Example #2
0
 public function case_metadata_default()
 {
     $this->given($option = 0, $mode = 0, $wrapper = new SUT())->when($result = $wrapper->stream_metadata('foo', $option, $mode))->then->boolean($result)->isFalse();
 }