You are here

public function ApplicationTest::testLegacyAsXml in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testLegacyAsXml()

@group legacy

File

vendor/symfony/console/Tests/ApplicationTest.php, line 508

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testLegacyAsXml() {
  $application = new Application();
  $application
    ->add(new \FooCommand());
  $this
    ->ensureStaticCommandHelp($application);
  $this
    ->assertXmlStringEqualsXmlFile(self::$fixturesPath . '/application_asxml1.txt', $application
    ->asXml(), '->asXml() returns an XML representation of the application');
  $this
    ->assertXmlStringEqualsXmlFile(self::$fixturesPath . '/application_asxml2.txt', $application
    ->asXml('foo'), '->asXml() returns an XML representation of the application');
}