PHP Class spec\Crummy\Phlack\Bot\Mainframe\MainframeSpec

Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: mcrumm/phlack

Méthodes publiques

Méthode Description
it_creates_a_listener_for_a_bot_and_matcher ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher )
it_fluently_attaches_bots_and_matchers ( Crummy\Phlack\Bot\BotInterface $bot, DefaultMatcher $matcher )
it_is_an_executable ( )
its_listener_can_accept_a_callable_as_a_matcher ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
its_listener_does_not_execute_without_match ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
its_listener_executes_commands_on_match ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
its_listener_throws_an_exception_for_non_callable_matchers ( Crummy\Phlack\Bot\BotInterface $bot )

Method Details

it_creates_a_listener_for_a_bot_and_matcher() public méthode

public it_creates_a_listener_for_a_bot_and_matcher ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher )
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface

it_fluently_attaches_bots_and_matchers() public méthode

public it_fluently_attaches_bots_and_matchers ( Crummy\Phlack\Bot\BotInterface $bot, DefaultMatcher $matcher )
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\DefaultMatcher

it_is_an_executable() public méthode

public it_is_an_executable ( )

its_listener_can_accept_a_callable_as_a_matcher() public méthode

public its_listener_can_accept_a_callable_as_a_matcher ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
$bot Crummy\Phlack\Bot\BotInterface
$command Crummy\Phlack\WebHook\CommandInterface
$packet Crummy\Phlack\Bot\Mainframe\Packet

its_listener_does_not_execute_without_match() public méthode

public its_listener_does_not_execute_without_match ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface
$command Crummy\Phlack\WebHook\CommandInterface
$packet Crummy\Phlack\Bot\Mainframe\Packet

its_listener_executes_commands_on_match() public méthode

public its_listener_executes_commands_on_match ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface $matcher, Crummy\Phlack\WebHook\CommandInterface $command, Packet $packet )
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface
$command Crummy\Phlack\WebHook\CommandInterface
$packet Crummy\Phlack\Bot\Mainframe\Packet

its_listener_throws_an_exception_for_non_callable_matchers() public méthode

public its_listener_throws_an_exception_for_non_callable_matchers ( Crummy\Phlack\Bot\BotInterface $bot )
$bot Crummy\Phlack\Bot\BotInterface