Neos\Flow\Monitor\FileMonitor::getMonitoredFiles PHP Метод

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

Returns a list of all monitored files
public getMonitoredFiles ( ) : array
Результат array A list of paths and filenames of monitored files
    public function getMonitoredFiles()
    {
        return $this->monitoredFiles;
    }

Usage Example

 /**
  * @test
  */
 public function aFileAppearsOnlyOnceInTheListOfMonitoredFiles()
 {
     $monitor = new FileMonitor('Flow_Test');
     $monitor->monitorFile(__FILE__);
     $monitor->monitorFile(__FILE__);
     $this->assertSame([$this->unixStylePathAndFilename], $monitor->getMonitoredFiles());
 }