public function find($query, $language = 'glob')
{
return $this->iteratorToCollection($this->getGlobIterator($query, $language));
}
/** * @expectedException \Puli\Repository\Api\UnsupportedLanguageException * @expectedExceptionMessage foobar */ public function testFindFailsIfLanguageNotGlob() { $repo = new FilesystemRepository($this->tempDir); $repo->find('/*', 'foobar'); }