src/package/Services/Watcher.php
protected function firedOnlyOne($event, $path)
    {
        if ($test = $this->dataRepository->isTestFile($path)) {
            if ($test->sha1Changed() && !$this->dataRepository->isEnqueued($test)) {
                $this->dataRepository->addTestToQueue($test);

                $this->showProgress('QUEUE: test added to queue');
            }

            return true;
        }

        return false;
    }
protected function firedOnlyOne($event, $path)
    {
        if ($test = $this->dataRepository->isTestFile($path)) {
            if ($test->sha1Changed() && !$this->dataRepository->isEnqueued($test)) {
                $this->dataRepository->addTestToQueue($test);

                $this->showProgress('QUEUE: test added to queue');
            }

            return true;
        }

        return false;
    }
protected function firedOnlyOne ( $ event , $ path ) { if ( $ test = $ this -> dataRepository -> isTestFile ( $ path ) ) { if ( $ test -> sha1Changed ( ) && ! $ this -> dataRepository -> isEnqueued ( $ test ) ) { $ this -> dataRepository -> addTestToQueue ( $ test ) ; $ this -> showProgress ( 'QUEUE: test added to queue' ) ; } return true ; } return false ; }
Check if has changed and add test to queue.

@param $event
@param $path

@return bool
Check if has changed and add test to queue .