"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.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).

RoutableFragmentRendererTest.php  (phplist-3.4.5.tgz):RoutableFragmentRendererTest.php  (phplist-3.4.6.tgz)
skipping to change at line 59 skipping to change at line 59
{ {
$request = Request::create('/'); $request = Request::create('/');
$request->attributes->set('_format', 'json'); $request->attributes->set('_format', 'json');
$request->setLocale('fr'); $request->setLocale('fr');
$controller = new ControllerReference('controller', [], []); $controller = new ControllerReference('controller', [], []);
$this->assertEquals('/_fragment?_path=_format%3Djson%26_locale%3Dfr%26_c ontroller%3Dcontroller', $this->callGenerateFragmentUriMethod($controller, $requ est)); $this->assertEquals('/_fragment?_path=_format%3Djson%26_locale%3Dfr%26_c ontroller%3Dcontroller', $this->callGenerateFragmentUriMethod($controller, $requ est));
} }
/** /**
* @expectedException \LogicException * @dataProvider getGenerateFragmentUriDataWithNonScalar
* @dataProvider getGenerateFragmentUriDataWithNonScalar
*/ */
public function testGenerateFragmentUriWithNonScalar($controller) public function testGenerateFragmentUriWithNonScalar($controller)
{ {
$this->expectException('LogicException');
$this->callGenerateFragmentUriMethod($controller, Request::create('/')); $this->callGenerateFragmentUriMethod($controller, Request::create('/'));
} }
public function getGenerateFragmentUriDataWithNonScalar() public function getGenerateFragmentUriDataWithNonScalar()
{ {
return [ return [
[new ControllerReference('controller', ['foo' => new Foo(), 'bar' => 'bar'], [])], [new ControllerReference('controller', ['foo' => new Foo(), 'bar' => 'bar'], [])],
[new ControllerReference('controller', ['foo' => ['foo' => 'foo'], ' bar' => ['bar' => new Foo()]], [])], [new ControllerReference('controller', ['foo' => ['foo' => 'foo'], ' bar' => ['bar' => new Foo()]], [])],
]; ];
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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