Robo\RoboFileFixture::testException PHP Method

testException() public method

Demonstrate what happens when a command or a task throws an exception. Note that typically, Robo commands should return Result objects rather than throw exceptions.
public testException ( $options = ['task' => false] )
    public function testException($options = ['task' => false])
    {
        if (!$options['task']) {
            throw new \RuntimeException('Command failed with an exception.');
        }
        throw new \RuntimeException('Task failed with an exception.');
    }