assertCount(1, $explorer); } public function testGetIterator() { $explorer = new PluginsExplorer(__DIR__ . '/../Fixtures/PluginDir'); $dirs = []; foreach ($explorer as $dir) { $dirs[] = (string) realpath($dir); } $this->assertSame([realpath(__DIR__ . '/../Fixtures/PluginDir/TestPlugin')], $dirs); } }