CacheTool\Console\ApplicationTest::testOutput PHP Method

testOutput() public method

public testOutput ( )
    public function testOutput()
    {
        $app = new Application(new Config(array('adapter' => 'cli')));
        $app->add(new DummyCommand());
        $app->setAutoExit(false);
        $output = new BufferedOutput();
        $code = $app->run(new StringInput("dummy -vvv"), $output);
        $this->assertSame(42, $code);
    }