コード例 #1
0
 /**
  * Tests the recursiveGlob function.
  *
  * @dataProvider providerRecursiveGlob
  * @param array $expected
  * @param string $pattern
  * @param int $flags
  */
 public function testRecursiveGlob($expected, $pattern, $flags = 0)
 {
     $fs = new Filesystem();
     $result = $fs->recursiveGlob($pattern, $flags);
     // Sort the arrays so that the indexes don't matter.
     sort($expected);
     sort($result);
     $this->assertEquals($expected, $result);
 }
コード例 #2
0
 /**
  * Tests that the Installer doesn't create the Component directory.
  */
 public function testInstallerCreationShouldNotCreateComponentDirectory()
 {
     $this->fs->removeDirectory($this->componentDir);
     new Installer($this->io, $this->composer);
     $this->assertFileNotExists($this->componentDir);
 }