PHP 클래스 spec\Crummy\Phlack\Bot\Mainframe\MainframeSpec

상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: mcrumm/phlack

공개 메소드들

메소드 설명
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 )

메소드 상세

it_creates_a_listener_for_a_bot_and_matcher() 공개 메소드

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 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 it_is_an_executable ( )

its_listener_can_accept_a_callable_as_a_matcher() 공개 메소드

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 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 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 its_listener_throws_an_exception_for_non_callable_matchers ( Crummy\Phlack\Bot\BotInterface $bot )
$bot Crummy\Phlack\Bot\BotInterface