"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/RouteCollectionBuilderTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

RouteCollectionBuilderTest.php  (phplist-3.4.5.tgz):RouteCollectionBuilderTest.php  (phplist-3.4.6.tgz)
skipping to change at line 78 skipping to change at line 78
public function testImportAddResources() public function testImportAddResources()
{ {
$routeCollectionBuilder = new RouteCollectionBuilder(new YamlFileLoader( new FileLocator([__DIR__.'/Fixtures/']))); $routeCollectionBuilder = new RouteCollectionBuilder(new YamlFileLoader( new FileLocator([__DIR__.'/Fixtures/'])));
$routeCollectionBuilder->import('file_resource.yml'); $routeCollectionBuilder->import('file_resource.yml');
$routeCollection = $routeCollectionBuilder->build(); $routeCollection = $routeCollectionBuilder->build();
$this->assertCount(1, $routeCollection->getResources()); $this->assertCount(1, $routeCollection->getResources());
} }
/**
* @expectedException \BadMethodCallException
*/
public function testImportWithoutLoaderThrowsException() public function testImportWithoutLoaderThrowsException()
{ {
$this->expectException('BadMethodCallException');
$collectionBuilder = new RouteCollectionBuilder(); $collectionBuilder = new RouteCollectionBuilder();
$collectionBuilder->import('routing.yml'); $collectionBuilder->import('routing.yml');
} }
public function testAdd() public function testAdd()
{ {
$collectionBuilder = new RouteCollectionBuilder(); $collectionBuilder = new RouteCollectionBuilder();
$addedRoute = $collectionBuilder->add('/checkout', 'AppBundle:Order:chec kout'); $addedRoute = $collectionBuilder->add('/checkout', 'AppBundle:Order:chec kout');
$addedRoute2 = $collectionBuilder->add('/blogs', 'AppBundle:Blog:list', 'blog_list'); $addedRoute2 = $collectionBuilder->add('/blogs', 'AppBundle:Blog:list', 'blog_list');
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)