コード例 #1
0
ファイル: ApplicationTest.php プロジェクト: spf13/symfony
 public function testAsText()
 {
     $application = new Application();
     $application->add(new \FooCommand());
     $this->assertStringEqualsFile(self::$fixturesPath . '/application_astext1.txt', $application->asText(), '->asText() returns a text representation of the application');
     $this->assertStringEqualsFile(self::$fixturesPath . '/application_astext2.txt', $application->asText('foo'), '->asText() returns a text representation of the application');
 }