public function testGetIgnores() { $expected = ['filter' => ['notPaths' => ['foo/bar', 'very/bad.php'], 'notNames' => ['*-m.js', 'bad.php']]]; $fs = new Filesystem(); $fs->dumpFile($this->pluginDir . '/.moodle-plugin-ci.yml', Yaml::dump($expected)); $plugin = new MoodlePlugin($this->pluginDir); $this->assertEquals($expected['filter'], $plugin->getIgnores()); }