public function testConstructorDefaults() { $watcher = new ResourceWatcher(); if (function_exists('inotify_init')) { $this->assertInstanceOf('Lurker\\Tracker\\InotifyTracker', $watcher->getTracker()); } else { $this->assertInstanceOf('Lurker\\Tracker\\RecursiveIteratorTracker', $watcher->getTracker()); } $this->assertInstanceOf('Symfony\\Component\\EventDispatcher\\EventDispatcher', $watcher->getEventDispatcher()); }