"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/ConfigDebugCommandTest.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).

ConfigDebugCommandTest.php  (phplist-3.4.5.tgz):ConfigDebugCommandTest.php  (phplist-3.4.6.tgz)
skipping to change at line 39 skipping to change at line 39
$this->application = new Application($kernel); $this->application = new Application($kernel);
$this->application->doRun(new ArrayInput([]), new NullOutput()); $this->application->doRun(new ArrayInput([]), new NullOutput());
} }
public function testDumpBundleName() public function testDumpBundleName()
{ {
$tester = $this->createCommandTester(); $tester = $this->createCommandTester();
$ret = $tester->execute(['name' => 'TestBundle']); $ret = $tester->execute(['name' => 'TestBundle']);
$this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertSame(0, $ret, 'Returns 0 in case of success');
$this->assertContains('custom: foo', $tester->getDisplay()); $this->assertStringContainsString('custom: foo', $tester->getDisplay());
} }
public function testDumpBundleOption() public function testDumpBundleOption()
{ {
$tester = $this->createCommandTester(); $tester = $this->createCommandTester();
$ret = $tester->execute(['name' => 'TestBundle', 'path' => 'custom']); $ret = $tester->execute(['name' => 'TestBundle', 'path' => 'custom']);
$this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertSame(0, $ret, 'Returns 0 in case of success');
$this->assertContains('foo', $tester->getDisplay()); $this->assertStringContainsString('foo', $tester->getDisplay());
} }
public function testParametersValuesAreResolved() public function testParametersValuesAreResolved()
{ {
$tester = $this->createCommandTester(); $tester = $this->createCommandTester();
$ret = $tester->execute(['name' => 'framework']); $ret = $tester->execute(['name' => 'framework']);
$this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertSame(0, $ret, 'Returns 0 in case of success');
$this->assertContains("locale: '%env(LOCALE)%'", $tester->getDisplay()); $this->assertStringContainsString("locale: '%env(LOCALE)%'", $tester->ge
$this->assertContains('secret: test', $tester->getDisplay()); tDisplay());
$this->assertStringContainsString('secret: test', $tester->getDisplay())
;
} }
public function testDumpUndefinedBundleOption() public function testDumpUndefinedBundleOption()
{ {
$tester = $this->createCommandTester(); $tester = $this->createCommandTester();
$tester->execute(['name' => 'TestBundle', 'path' => 'foo']); $tester->execute(['name' => 'TestBundle', 'path' => 'foo']);
$this->assertContains('Unable to find configuration for "test.foo"', $te ster->getDisplay()); $this->assertStringContainsString('Unable to find configuration for "tes t.foo"', $tester->getDisplay());
} }
/** /**
* @return CommandTester * @return CommandTester
*/ */
private function createCommandTester() private function createCommandTester()
{ {
$command = $this->application->find('debug:config'); $command = $this->application->find('debug:config');
return new CommandTester($command); return new CommandTester($command);
 End of changes. 4 change blocks. 
5 lines changed or deleted 7 lines changed or added

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