spiral / app

Spiral Framework Skeleton HTTP Application: Queue, Console, Cycle ORM
https://spiral.dev/
MIT License
191 stars 20 forks source link

add missed method for InteractsWithConsole #28

Closed krwu closed 4 years ago

krwu commented 4 years ago

There should be a method console() which returns an instance of Spiral\Console\Console.

After merge this PR, $this->runCommand can be used at any test method. Like:

    public function testInteractWithConsole(): void
    {
        $output = $this->runCommand('views:reset');

        $this->assertStringContainsString('cache', $output);
    }

This PR can Close #27

wolfy-j commented 4 years ago

Thank you