~ubuntu-branches/ubuntu/wily/symfony/wily

« back to all changes in this revision

Viewing changes to src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php

  • Committer: Package Import Robot
  • Author(s): David Prévot, Fabien Potencier
  • Date: 2015-06-14 17:15:34 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20150614171534-h74z7c7x7hdhz3ra
Tags: 2.7.1+dfsg-1
[ Fabien Potencier ]
updated VERSION for 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    public function testDebugAllRoutes()
23
23
    {
24
24
        $tester = $this->createCommandTester();
25
 
        $ret = $tester->execute(array('name' => null));
 
25
        $ret = $tester->execute(array('name' => null), array('decorated' => false));
26
26
 
27
27
        $this->assertEquals(0, $ret, 'Returns 0 in case of success');
28
28
        $this->assertContains('[router] Current routes', $tester->getDisplay());
31
31
    public function testDebugSingleRoute()
32
32
    {
33
33
        $tester = $this->createCommandTester();
34
 
        $ret = $tester->execute(array('name' => 'foo'));
 
34
        $ret = $tester->execute(array('name' => 'foo'), array('decorated' => false));
35
35
 
36
36
        $this->assertEquals(0, $ret, 'Returns 0 in case of success');
37
37
        $this->assertContains('[router] Route "foo"', $tester->getDisplay());