예제 #1
0
 /**
  * Testing parseNamespaceMap with some paths
  *
  * @dataProvider loadNamespaceMapDataProvider
  */
 public function testLoadNamespaceMap($active, $include, $ignore, $expectedPaths, $expectedExcludedPaths)
 {
     $this->bundleMock->expects($this->any())->method('getPath')->will($this->returnValue($this->bundlePath));
     $this->kernelBundles = array("FirstBundleName" => $this->bundleMock);
     list($paths, $excludedPaths) = $this->gearmanParser->loadNamespaceMap($this->kernelBundles, array("FirstBundle" => array("name" => "FirstBundleName", "active" => $active, "include" => $include, "ignore" => $ignore)));
     $this->assertEquals($paths, $expectedPaths);
     $this->assertEquals($excludedPaths, $expectedExcludedPaths);
 }