Slack\Test\Command\NotifierCommandTest::testExecute PHP Method

testExecute() public method

[testExecute description]
public testExecute ( ) : [type]
return [type]
    public function testExecute()
    {
        $application = new Application();
        $application->add(new NotifierCommand());
        $command = $application->find('notify');
        $commandTester = new CommandTester($command);
        try {
            $commandTester->execute(array('command' => $command->getName(), 'message' => 'test', 'channel' => 'test'));
            $this->failed('');
        } catch (\Guzzle\Http\Exception\CurlException $expected) {
            return;
        }
    }
NotifierCommandTest