lithium\tests\cases\console\CommandTest::testHelp PHP Метод

testHelp() публичный Метод

public testHelp ( )
    public function testHelp()
    {
        $command = new MockCommand(array('request' => $this->request));
        $return = $command->__invoke('_help');
        $this->assertInstanceOf('lithium\\tests\\mocks\\console\\MockResponse', $return);
        $expected = "DESCRIPTION.*This is the Mock Command";
        $result = $command->response->output;
        $this->assertPattern("/{$expected}/s", $result);
        $command = new MockCommand(array('request' => $this->request));
        $return = $command->__invoke('_help');
        $expected = "testRun";
        $result = $command->response->output;
        $this->assertPattern("/{$expected}/m", $result);
    }