public function test_can_add_paths() { $this->driver->shouldReceive('addPaths')->with(['paths'])->once(); $this->driver->shouldReceive('addPaths')->with(['paths2'])->once(); $this->chain->addPaths(['paths']); $this->chain->addPaths(['paths2']); }
public function test_can_add_paths_to_simplified_filedriver() { $driver = m::mock(SimplifiedXmlDriver::class); $locator = m::mock(SymfonyFileLocator::class); $chain = new MappingDriverChain($driver, 'Namespace'); $driver->shouldReceive('getLocator')->andReturn($locator); $locator->shouldReceive('addNamespacePrefixes')->with(['paths'])->once(); $locator->shouldReceive('addNamespacePrefixes')->with(['paths2'])->once(); $chain->addPaths(['paths']); $chain->addPaths(['paths2']); }