Neos\Flow\ResourceManagement\Streams\StreamWrapperAdapter::dir_rewinddir PHP Метод

dir_rewinddir() публичный Метод

This method is called in response to rewinddir(). Should reset the output generated by dir_readdir(). I.e.: The next call to dir_readdir() should return the first entry in the location returned by dir_opendir().
public dir_rewinddir ( ) : boolean
Результат boolean TRUE on success or FALSE on failure.
    public function dir_rewinddir()
    {
        return $this->streamWrapper->rewindDirectory();
    }

Usage Example

 /**
  * @test
  */
 public function dir_rewinddirTest()
 {
     $this->mockStreamWrapper->expects($this->once())->method('rewindDirectory')->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->dir_rewinddir());
 }