/** * @test * @dataProvider provideFilesForProvidesForMatching */ public function isApplicableToShouldMatchAgainstFileProfileCorrectly($expected, $file) { $this->plugin->attachTo($this->filelib); $file = $file + array('resource' => Resource::create($file)); $file = File::create($file); $this->plugin->setProfiles(array('tussi', 'lussi')); $this->assertEquals($expected, $this->plugin->isApplicableTo($file)); }