Skip to content

Instantly share code, notes, and snippets.

@elstamey
Created November 4, 2015 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elstamey/a1e1413650b536832ba6 to your computer and use it in GitHub Desktop.
Save elstamey/a1e1413650b536832ba6 to your computer and use it in GitHub Desktop.
local: phergie-irc-plugin-react-cfp $ vendor/bin/phpunit tests
PHPUnit 4.5.1 by Sebastian Bergmann and contributors.
Configuration read from /var/www/html/phergie/phergie/scaffold/phergie-irc-plugin-react-cfp/phpunit.xml
..object(Phergie\Plugin\Http\Request)#121 (1) {
["config":protected]=>
array(6) {
["url"]=>
string(42) "http://api.joind.in/v2.1/events?filter=cfp"
["resolveCallback"]=>
object(Closure)#122 (3) {
["static"]=>
array(2) {
["event"]=>
object(CommandEvent_PHAKE56395f80799cc)#59 (12) {
["__PHAKE_info"]=>
object(Phake_Mock_Info)#62 (7) {
["uniqId":"Phake_Mock_Info":private]=>
string(23) "56395f80cf4558.17770889"
["recorder":"Phake_Mock_Info":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
["mapper":"Phake_Mock_Info":private]=>
object(Phake_Stubber_StubMapper)#61 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#54 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#55 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#53 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(54) "Mock for Phergie\Irc\Plugin\React\Command\CommandEvent"
}
}
}
}
}
}
["answer":"Phake_Mock_Info":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#18 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
["frozen":"Phake_Mock_Info":private]=>
bool(false)
["name":"Phake_Mock_Info":private]=>
string(45) "Phergie\Irc\Plugin\React\Command\CommandEvent"
["handlerChain":"Phake_Mock_Info":private]=>
object(Phake_ClassGenerator_InvocationHandler_Composite)#48 (1) {
["handlers":"Phake_ClassGenerator_InvocationHandler_Composite":private]=>
array(4) {
[0]=>
object(Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck)#49 (1) {
["mockInfo":"Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck":private]=>
*RECURSION*
}
[1]=>
object(Phake_ClassGenerator_InvocationHandler_CallRecorder)#50 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_CallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[2]=>
object(Phake_ClassGenerator_InvocationHandler_MagicCallRecorder)#51 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_MagicCallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[3]=>
object(Phake_ClassGenerator_InvocationHandler_StubCaller)#46 (2) {
["stubMapper":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_StubMapper)#61 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#54 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#55 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#53 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(54) "Mock for Phergie\Irc\Plugin\React\Command\CommandEvent"
}
}
}
}
}
}
["defaultAnswer":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#18 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
}
}
}
}
["customCommand":protected]=>
NULL
["customParams":protected]=>
array(0) {
}
["prefix":protected]=>
NULL
["nick":protected]=>
NULL
["username":protected]=>
NULL
["host":protected]=>
NULL
["targets":protected]=>
array(0) {
}
["message":protected]=>
NULL
["connection":protected]=>
NULL
["params":protected]=>
array(0) {
}
["command":protected]=>
NULL
}
["queue"]=>
object(EventQueueInterface_PHAKE56395f809bf5d)#111 (1) {
["__PHAKE_info"]=>
object(Phake_Mock_Info)#112 (7) {
["uniqId":"Phake_Mock_Info":private]=>
string(23) "56395f80cf47f8.53741506"
["recorder":"Phake_Mock_Info":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
["mapper":"Phake_Mock_Info":private]=>
object(Phake_Stubber_StubMapper)#109 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#119 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#117 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#118 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(50) "Mock for Phergie\Irc\Bot\React\EventQueueInterface"
}
}
}
}
}
}
["answer":"Phake_Mock_Info":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#57 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
["frozen":"Phake_Mock_Info":private]=>
bool(false)
["name":"Phake_Mock_Info":private]=>
string(41) "Phergie\Irc\Bot\React\EventQueueInterface"
["handlerChain":"Phake_Mock_Info":private]=>
object(Phake_ClassGenerator_InvocationHandler_Composite)#114 (1) {
["handlers":"Phake_ClassGenerator_InvocationHandler_Composite":private]=>
array(4) {
[0]=>
object(Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck)#113 (1) {
["mockInfo":"Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck":private]=>
*RECURSION*
}
[1]=>
object(Phake_ClassGenerator_InvocationHandler_CallRecorder)#110 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_CallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[2]=>
object(Phake_ClassGenerator_InvocationHandler_MagicCallRecorder)#115 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_MagicCallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[3]=>
object(Phake_ClassGenerator_InvocationHandler_StubCaller)#116 (2) {
["stubMapper":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_StubMapper)#109 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#119 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#117 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#118 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(50) "Mock for Phergie\Irc\Bot\React\EventQueueInterface"
}
}
}
}
}
}
["defaultAnswer":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#57 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
}
}
}
}
}
}
["this"]=>
object(Phergie\Irc\Plugin\React\Cfp\Adapter\JoinedIn)#120 (0) {
}
["parameter"]=>
array(1) {
["$response"]=>
string(10) "<required>"
}
}
["method"]=>
string(3) "GET"
["rejectCallback"]=>
object(Closure)#123 (3) {
["static"]=>
array(2) {
["event"]=>
object(CommandEvent_PHAKE56395f80799cc)#59 (12) {
["__PHAKE_info"]=>
object(Phake_Mock_Info)#62 (7) {
["uniqId":"Phake_Mock_Info":private]=>
string(23) "56395f80cf4558.17770889"
["recorder":"Phake_Mock_Info":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
["mapper":"Phake_Mock_Info":private]=>
object(Phake_Stubber_StubMapper)#61 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#54 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#55 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#53 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(54) "Mock for Phergie\Irc\Plugin\React\Command\CommandEvent"
}
}
}
}
}
}
["answer":"Phake_Mock_Info":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#18 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
["frozen":"Phake_Mock_Info":private]=>
bool(false)
["name":"Phake_Mock_Info":private]=>
string(45) "Phergie\Irc\Plugin\React\Command\CommandEvent"
["handlerChain":"Phake_Mock_Info":private]=>
object(Phake_ClassGenerator_InvocationHandler_Composite)#48 (1) {
["handlers":"Phake_ClassGenerator_InvocationHandler_Composite":private]=>
array(4) {
[0]=>
object(Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck)#49 (1) {
["mockInfo":"Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck":private]=>
*RECURSION*
}
[1]=>
object(Phake_ClassGenerator_InvocationHandler_CallRecorder)#50 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_CallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[2]=>
object(Phake_ClassGenerator_InvocationHandler_MagicCallRecorder)#51 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_MagicCallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#60 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[3]=>
object(Phake_ClassGenerator_InvocationHandler_StubCaller)#46 (2) {
["stubMapper":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_StubMapper)#61 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#54 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#55 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#53 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(54) "Mock for Phergie\Irc\Plugin\React\Command\CommandEvent"
}
}
}
}
}
}
["defaultAnswer":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#18 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
}
}
}
}
["customCommand":protected]=>
NULL
["customParams":protected]=>
array(0) {
}
["prefix":protected]=>
NULL
["nick":protected]=>
NULL
["username":protected]=>
NULL
["host":protected]=>
NULL
["targets":protected]=>
array(0) {
}
["message":protected]=>
NULL
["connection":protected]=>
NULL
["params":protected]=>
array(0) {
}
["command":protected]=>
NULL
}
["queue"]=>
object(EventQueueInterface_PHAKE56395f809bf5d)#111 (1) {
["__PHAKE_info"]=>
object(Phake_Mock_Info)#112 (7) {
["uniqId":"Phake_Mock_Info":private]=>
string(23) "56395f80cf47f8.53741506"
["recorder":"Phake_Mock_Info":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
["mapper":"Phake_Mock_Info":private]=>
object(Phake_Stubber_StubMapper)#109 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#119 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#117 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#118 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(50) "Mock for Phergie\Irc\Bot\React\EventQueueInterface"
}
}
}
}
}
}
["answer":"Phake_Mock_Info":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#57 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
["frozen":"Phake_Mock_Info":private]=>
bool(false)
["name":"Phake_Mock_Info":private]=>
string(41) "Phergie\Irc\Bot\React\EventQueueInterface"
["handlerChain":"Phake_Mock_Info":private]=>
object(Phake_ClassGenerator_InvocationHandler_Composite)#114 (1) {
["handlers":"Phake_ClassGenerator_InvocationHandler_Composite":private]=>
array(4) {
[0]=>
object(Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck)#113 (1) {
["mockInfo":"Phake_ClassGenerator_InvocationHandler_FrozenObjectCheck":private]=>
*RECURSION*
}
[1]=>
object(Phake_ClassGenerator_InvocationHandler_CallRecorder)#110 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_CallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[2]=>
object(Phake_ClassGenerator_InvocationHandler_MagicCallRecorder)#115 (1) {
["callRecorder":"Phake_ClassGenerator_InvocationHandler_MagicCallRecorder":private]=>
object(Phake_CallRecorder_Recorder)#52 (2) {
["calls":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
["positions":"Phake_CallRecorder_Recorder":private]=>
array(0) {
}
}
}
[3]=>
object(Phake_ClassGenerator_InvocationHandler_StubCaller)#116 (2) {
["stubMapper":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_StubMapper)#109 (1) {
["matcherStubMap":"Phake_Stubber_StubMapper":private]=>
array(1) {
[0]=>
array(2) {
[0]=>
object(Phake_Matchers_MethodMatcher)#119 (2) {
["expectedMethod":"Phake_Matchers_MethodMatcher":private]=>
string(10) "__toString"
["argumentMatcherChain":"Phake_Matchers_MethodMatcher":private]=>
NULL
}
[1]=>
object(Phake_Stubber_AnswerCollection)#117 (1) {
["answers":"Phake_Stubber_AnswerCollection":private]=>
array(1) {
[0]=>
object(Phake_Stubber_Answers_StaticAnswer)#118 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
string(50) "Mock for Phergie\Irc\Bot\React\EventQueueInterface"
}
}
}
}
}
}
["defaultAnswer":"Phake_ClassGenerator_InvocationHandler_StubCaller":private]=>
object(Phake_Stubber_Answers_StaticAnswer)#57 (1) {
["answer":"Phake_Stubber_Answers_StaticAnswer":private]=>
NULL
}
}
}
}
}
}
}
["this"]=>
object(Phergie\Irc\Plugin\React\Cfp\Adapter\JoinedIn)#120 (0) {
}
["parameter"]=>
array(1) {
["$response"]=>
string(10) "<required>"
}
}
["headers"]=>
array(0) {
}
["body"]=>
string(0) ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment