Fakerino\Test\Core\Console\FakeConsoleTest::testCallWithNumArg PHP Method

testCallWithNumArg() public method

public testCallWithNumArg ( )
    public function testCallWithNumArg()
    {
        $args = array(1 => 'surname', '2' => '-n', '3' => 2);
        $fakeConsole = new FakeConsole($args);
        $result = (string) $fakeConsole->run();
        $this->assertEquals($args[3], substr_count($result, "\n"));
    }