public function testFindAll() { $this->_watcher = $this->_createWatcher(); $this->_watcherMapper->insert($this->_watcher); $streamer = $this->_watcherMapper->findAll(); $this->assertInstanceOf('\\Application\\Model\\Stream\\StreamResultModel', $streamer); $this->assertGreaterThanOrEqual(1, $streamer->getCount()); $i = 0; foreach ($streamer as $watcher) { $i++; $this->assertInstanceOf('\\Core\\Model\\WatcherModel', $watcher, "Watcher no. " . $i); $this->assertNotEmpty($watcher->exportData(), "Watcher content no. " . $i); } }