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

testCallTemplateString() public method

    public function testCallTemplateString()
    {
        $templateString = 'Hello Mr {{ surname }}';
        $args = array(1 => '-s', '2' => $templateString);
        $fakeConsole = new FakeConsole($args);
        $result = (string) $fakeConsole->run();
        $this->assertInternalType('string', $result);
        $this->assertNotContains('{{ surname }}', $result);
    }