/** * @test */ public function filteringCountAndIterating() { $modules = new Modules(); $result = $modules->filterModules($this->filter()); $this->assertInstanceOf(__NAMESPACE__ . '\\Modules', $result); $this->assertCount(0, $result); $this->assertCount(0, iterator_to_array($result)); }
/** * Get modules * * @return Modules */ public function getModules() { $modules = new Modules(); return $modules->findInstalledModules(); }