Clinner\Command\Tests\CallbackTest::testRun PHP Method

testRun() public method

public testRun ( )
    public function testRun()
    {
        $closure = function ($a) {
            echo 'Some nifty output.';
            return 0;
        };
        $callback = new Callback($closure);
        $callback->run();
        $this->assertAttributeEquals(0, '_exitCode', $callback);
        $this->assertAttributeEquals('Some nifty output.', '_output', $callback);
    }