Пример #1
0
 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');
 }