"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/DebugAutowiringCommandTest.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).

DebugAutowiringCommandTest.php  (phplist-3.4.5.tgz):DebugAutowiringCommandTest.php  (phplist-3.4.6.tgz)
skipping to change at line 32 skipping to change at line 32
public function testBasicFunctionality() public function testBasicFunctionality()
{ {
static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']); static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']);
$application = new Application(static::$kernel); $application = new Application(static::$kernel);
$application->setAutoExit(false); $application->setAutoExit(false);
$tester = new ApplicationTester($application); $tester = new ApplicationTester($application);
$tester->run(['command' => 'debug:autowiring']); $tester->run(['command' => 'debug:autowiring']);
$this->assertContains('Symfony\Component\HttpKernel\HttpKernelInterface' $this->assertStringContainsString('Symfony\Component\HttpKernel\HttpKern
, $tester->getDisplay()); elInterface', $tester->getDisplay());
$this->assertContains('alias to http_kernel', $tester->getDisplay()); $this->assertStringContainsString('alias to http_kernel', $tester->getDi
splay());
} }
public function testSearchArgument() public function testSearchArgument()
{ {
static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']); static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']);
$application = new Application(static::$kernel); $application = new Application(static::$kernel);
$application->setAutoExit(false); $application->setAutoExit(false);
$tester = new ApplicationTester($application); $tester = new ApplicationTester($application);
$tester->run(['command' => 'debug:autowiring', 'search' => 'kern']); $tester->run(['command' => 'debug:autowiring', 'search' => 'kern']);
$this->assertContains('Symfony\Component\HttpKernel\HttpKernelInterface' $this->assertStringContainsString('Symfony\Component\HttpKernel\HttpKern
, $tester->getDisplay()); elInterface', $tester->getDisplay());
$this->assertNotContains('Symfony\Component\Routing\RouterInterface', $t $this->assertStringNotContainsString('Symfony\Component\Routing\RouterIn
ester->getDisplay()); terface', $tester->getDisplay());
} }
public function testSearchNoResults() public function testSearchNoResults()
{ {
static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']); static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'c onfig.yml']);
$application = new Application(static::$kernel); $application = new Application(static::$kernel);
$application->setAutoExit(false); $application->setAutoExit(false);
$tester = new ApplicationTester($application); $tester = new ApplicationTester($application);
$tester->run(['command' => 'debug:autowiring', 'search' => 'foo_fake'], ['capture_stderr_separately' => true]); $tester->run(['command' => 'debug:autowiring', 'search' => 'foo_fake'], ['capture_stderr_separately' => true]);
$this->assertContains('No autowirable classes or interfaces found matchi ng "foo_fake"', $tester->getErrorOutput()); $this->assertStringContainsString('No autowirable classes or interfaces found matching "foo_fake"', $tester->getErrorOutput());
$this->assertEquals(1, $tester->getStatusCode()); $this->assertEquals(1, $tester->getStatusCode());
} }
} }
 End of changes. 3 change blocks. 
8 lines changed or deleted 9 lines changed or added

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