예제 #1
0
 public function testGetRelativeFiles()
 {
     $finder = new Finder();
     $finder->name('*.php')->sortByName();
     $plugin = new MoodlePlugin($this->pluginDir);
     $this->assertEquals(['lib.php', 'tests/lib_test.php', 'version.php'], $plugin->getRelativeFiles($finder));
 }
예제 #2
0
 public function testGetRelativeFiles()
 {
     $finder = new Finder();
     $finder->name('*.php')->sortByName();
     $plugin = new MoodlePlugin($this->pluginDir);
     $expected = ['classes/math.php', 'db/access.php', 'lang/en/local_travis.php', 'lib.php', 'tests/lib_test.php', 'version.php'];
     $this->assertEquals($expected, $plugin->getRelativeFiles($finder));
 }