diff --git a/.travis.yml b/.travis.yml index 1539058..189b92b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: php sudo: false - cache: directories: - $HOME/.composer/cache/files @@ -12,18 +11,18 @@ php: - 5.5 - 5.6 - 7.0 + - 7.1 + - 7.2 - hhvm matrix: include: - - php: 5.4 - env: INOTIFY_EXTENSION=1 - - php: 5.5 - env: INOTIFY_EXTENSION=1 - php: 5.6 env: INOTIFY_EXTENSION=1 before_script: - - "if [ \"$INOTIFY_EXTENSION\" = \"1\" ]; then pyrus install pecl/inotify && pyrus build pecl/inotify; fi" - - "if [ \"$INOTIFY_EXTENSION\" = \"1\" ]; then echo \"extension=inotify.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi" + - "if [ \"$INOTIFY_EXTENSION\" = \"1\" ]; then pecl install inotify-0.1.6; fi" - "composer install --no-progress" + +script: + - "vendor/bin/phpunit" \ No newline at end of file diff --git a/composer.json b/composer.json index c62dbe7..e2baa28 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ "require" : { "php" : ">=5.3.3", - "symfony/config" : "^2.2|^3.0", - "symfony/event-dispatcher" : "^2.2|^3.0" + "symfony/config" : "^2.2 || ^3.0 || ^4.0", + "symfony/event-dispatcher" : "^2.2 || ^3.0 || ^4.0" }, "autoload" : { @@ -38,5 +38,8 @@ "branch-alias" : { "dev-master" : "1.0.x-dev" } + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0" } } diff --git a/tests/Lurker/Tests/Tracker/TrackerTest.php b/tests/Lurker/Tests/Tracker/TrackerTest.php index b7eabbe..a5175ca 100644 --- a/tests/Lurker/Tests/Tracker/TrackerTest.php +++ b/tests/Lurker/Tests/Tracker/TrackerTest.php @@ -30,17 +30,16 @@ public function tearDown() } /** - * @expectedException Lurker\Exception\InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testDoesNotTrackMissingFiles() { $tracker = $this->getTracker(); - - $tracker->track(new TrackedResource('missing', new FileResource(__DIR__.'/missingfile'))); + $tracker->track(new TrackedResource('missing', new FileResource(__DIR__ . '/missingfile'))); } /** - * @expectedException Lurker\Exception\InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testDoesNotTrackMissingDirectories() {