Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require_once __DIR__ . "\x2f\x41\x62\x73\x74\x72\141\143\x74\123\x6d\164\160\124\14..
Decoded Output download
<?php
require_once __DIR__ . "/AbstractSmtpTest.php"; abstract class Swift_Transport_AbstractSmtpEventSupportTest extends Swift_Transport_AbstractSmtpTest { public function testRegisterPluginLoadsPluginInEventDispatcher() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $listener = $this->getMockery("Swift_Events_EventListener"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("bindEventListener")->once()->with($listener); $smtp->registerPlugin($listener); } public function testSendingDispatchesBeforeSendEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $message = $this->createMessage(); $smtp = $this->getTransport($buf, $dispatcher); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark")); $dispatcher->shouldReceive("createSendEvent")->once()->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeSendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendingDispatchesSendEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $message = $this->createMessage(); $smtp = $this->getTransport($buf, $dispatcher); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark")); $dispatcher->shouldReceive("createSendEvent")->once()->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "sendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendEventCapturesFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark")); $buf->shouldReceive("write")->once()->with("MAIL FROM:<[email protected]>
\xa")->andReturn(1); $buf->shouldReceive("readLine")->once()->with(1)->andReturn("250 OK\xd\xa"); $buf->shouldReceive("write")->once()->with("RCPT TO:<[email protected]>
\xa")->andReturn(2); $buf->shouldReceive("readLine")->once()->with(2)->andReturn("500 Not now\xd\xa"); $dispatcher->shouldReceive("createSendEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "sendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("setFailedRecipients")->once()->with(array("[email protected]")); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testSendEventHasResultFailedIfAllFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark")); $buf->shouldReceive("write")->once()->with("MAIL FROM:<[email protected]>\xd\xa")->andReturn(1); $buf->shouldReceive("readLine")->once()->with(1)->andReturn("250 OK\xd\xa"); $buf->shouldReceive("write")->once()->with("RCPT TO:<[email protected]>
")->andReturn(2); $buf->shouldReceive("readLine")->once()->with(2)->andReturn("500 Not now
"); $dispatcher->shouldReceive("createSendEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "sendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("setResult")->once()->with(Swift_Events_SendEvent::RESULT_FAILED); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testSendEventHasResultTentativeIfSomeFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark", "[email protected]" => "Chris")); $buf->shouldReceive("write")->once()->with("MAIL FROM:<[email protected]>\xd
")->andReturn(1); $buf->shouldReceive("readLine")->once()->with(1)->andReturn("250 OK
\xa"); $buf->shouldReceive("write")->once()->with("RCPT TO:<[email protected]>\xd\xa")->andReturn(2); $buf->shouldReceive("readLine")->once()->with(2)->andReturn("500 Not now\xd\xa"); $dispatcher->shouldReceive("createSendEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "sendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("setResult")->once()->with(Swift_Events_SendEvent::RESULT_TENTATIVE); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendEventHasResultSuccessIfNoFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark", "[email protected]" => "Chris")); $dispatcher->shouldReceive("createSendEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "sendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("setResult")->once()->with(Swift_Events_SendEvent::RESULT_SUCCESS); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(2, $smtp->send($message)); } public function testCancellingEventBubbleBeforeSendStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_SendEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("getFrom")->zeroOrMoreTimes()->andReturn(array("[email protected]" => null)); $message->shouldReceive("getTo")->zeroOrMoreTimes()->andReturn(array("[email protected]" => "Mark")); $dispatcher->shouldReceive("createSendEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeSendPerformed"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testStartingTransportDispatchesTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "transportStarted"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); } public function testStartingTransportDispatchesBeforeTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeTransportStarted"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); } public function testCancellingBubbleBeforeTransportStartStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeTransportStarted"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); $this->assertFalse($smtp->isStarted(), "%s: Transport should not be started since event bubble was cancelled"); } public function testStoppingTransportDispatchesTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "transportStopped"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); } public function testStoppingTransportDispatchesBeforeTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeTransportStopped"); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); } public function testCancellingBubbleBeforeTransportStoppedStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportChangeEvent"); $smtp = $this->getTransport($buf, $dispatcher); $hasRun = false; $dispatcher->shouldReceive("createTransportChangeEvent")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "beforeTransportStopped")->andReturnUsing(function () use(&$hasRun) { $hasRun = true; }); $dispatcher->shouldReceive("dispatchEvent")->zeroOrMoreTimes(); $evt->shouldReceive("bubbleCancelled")->zeroOrMoreTimes()->andReturnUsing(function () use(&$hasRun) { return $hasRun; }); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); $this->assertTrue($smtp->isStarted(), "%s: Transport should not be stopped since event bubble was cancelled"); } public function testResponseEventsAreGenerated() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_ResponseEvent"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createResponseEvent")->atLeast()->once()->with($smtp, \Mockery::any(), \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->atLeast()->once()->with($evt, "responseReceived"); $this->finishBuffer($buf); $smtp->start(); } public function testCommandEventsAreGenerated() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_CommandEvent"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("createCommandEvent")->once()->with($smtp, \Mockery::any(), \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "commandSent"); $this->finishBuffer($buf); $smtp->start(); } public function testExceptionsCauseExceptionEvents() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportExceptionEvent"); $smtp = $this->getTransport($buf, $dispatcher); $buf->shouldReceive("readLine")->atLeast()->once()->andReturn("503 I'm sleepy, go away!\xd
"); $dispatcher->shouldReceive("createTransportExceptionEvent")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->once()->with($evt, "exceptionThrown"); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(false); try { $smtp->start(); $this->fail("TransportException should be thrown on invalid response"); } catch (Swift_TransportException $e) { } } public function testExceptionBubblesCanBeCancelled() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("Swift_Events_TransportExceptionEvent"); $smtp = $this->getTransport($buf, $dispatcher); $buf->shouldReceive("readLine")->atLeast()->once()->andReturn("503 I'm sleepy, go away!
"); $dispatcher->shouldReceive("createTransportExceptionEvent")->twice()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("dispatchEvent")->twice()->with($evt, "exceptionThrown"); $evt->shouldReceive("bubbleCancelled")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); } protected function createEventDispatcher($stub = true) { return $this->getMockery("Swift_Events_EventDispatcher")->shouldIgnoreMissing(); } } ?>
Did this file decode correctly?
Original Code
<?php
require_once __DIR__ . "\x2f\x41\x62\x73\x74\x72\141\143\x74\123\x6d\164\160\124\145\x73\x74\x2e\x70\x68\x70"; abstract class Swift_Transport_AbstractSmtpEventSupportTest extends Swift_Transport_AbstractSmtpTest { public function testRegisterPluginLoadsPluginInEventDispatcher() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $listener = $this->getMockery("\x53\167\151\x66\x74\x5f\x45\166\x65\x6e\164\x73\x5f\105\x76\x65\x6e\164\114\151\163\164\x65\x6e\x65\x72"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\x62\x69\156\x64\x45\x76\145\156\x74\114\151\x73\x74\x65\156\145\x72")->once()->with($listener); $smtp->registerPlugin($listener); } public function testSendingDispatchesBeforeSendEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $message = $this->createMessage(); $smtp = $this->getTransport($buf, $dispatcher); $evt = $this->getMockery("\123\167\151\146\164\137\x45\166\145\x6e\x74\x73\x5f\x53\x65\x6e\144\105\x76\x65\x6e\164")->shouldIgnoreMissing(); $message->shouldReceive("\x67\x65\164\106\x72\x6f\x6d")->zeroOrMoreTimes()->andReturn(array("\x63\x68\x72\151\x73\100\163\167\x69\x66\164\155\x61\151\154\x65\162\56\157\x72\147" => null)); $message->shouldReceive("\147\145\x74\124\157")->zeroOrMoreTimes()->andReturn(array("\x6d\x61\162\x6b\x40\163\x77\x69\146\164\155\141\x69\154\x65\162\x2e\157\162\x67" => "\x4d\x61\162\x6b")); $dispatcher->shouldReceive("\143\162\x65\x61\x74\x65\x53\145\x6e\144\x45\166\x65\156\x74")->once()->andReturn($evt); $dispatcher->shouldReceive("\x64\151\163\x70\x61\164\143\x68\x45\x76\x65\156\x74")->once()->with($evt, "\142\x65\x66\157\x72\x65\123\145\x6e\x64\120\145\162\x66\x6f\162\155\x65\x64"); $dispatcher->shouldReceive("\x64\151\x73\x70\x61\x74\x63\x68\105\x76\145\156\x74")->zeroOrMoreTimes(); $evt->shouldReceive("\x62\x75\142\x62\x6c\145\103\141\x6e\143\145\x6c\154\145\144")->zeroOrMoreTimes()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendingDispatchesSendEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $message = $this->createMessage(); $smtp = $this->getTransport($buf, $dispatcher); $evt = $this->getMockery("\x53\x77\151\x66\x74\x5f\105\x76\145\156\x74\x73\x5f\x53\x65\x6e\x64\x45\166\145\156\x74")->shouldIgnoreMissing(); $message->shouldReceive("\x67\x65\x74\106\162\157\155")->zeroOrMoreTimes()->andReturn(array("\143\x68\x72\151\163\x40\163\167\x69\x66\x74\155\141\x69\x6c\145\x72\x2e\x6f\x72\147" => null)); $message->shouldReceive("\147\145\164\x54\x6f")->zeroOrMoreTimes()->andReturn(array("\155\141\162\153\x40\x73\x77\x69\146\164\x6d\x61\151\154\x65\x72\x2e\157\162\x67" => "\x4d\x61\x72\153")); $dispatcher->shouldReceive("\x63\x72\145\141\164\x65\x53\x65\x6e\144\x45\166\145\x6e\164")->once()->andReturn($evt); $dispatcher->shouldReceive("\144\151\x73\x70\x61\x74\143\150\105\x76\x65\x6e\x74")->once()->with($evt, "\163\145\156\144\120\145\x72\146\x6f\162\155\x65\x64"); $dispatcher->shouldReceive("\x64\151\163\x70\141\164\x63\x68\x45\x76\145\x6e\x74")->zeroOrMoreTimes(); $evt->shouldReceive("\142\165\x62\142\x6c\x65\103\141\156\x63\145\154\154\x65\x64")->zeroOrMoreTimes()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendEventCapturesFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\x77\151\x66\x74\137\x45\x76\x65\x6e\x74\163\x5f\x53\x65\x6e\x64\105\x76\145\x6e\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("\147\x65\164\106\x72\x6f\x6d")->zeroOrMoreTimes()->andReturn(array("\143\x68\162\151\x73\x40\x73\167\x69\146\x74\155\x61\151\x6c\x65\162\x2e\157\x72\x67" => null)); $message->shouldReceive("\147\145\x74\124\157")->zeroOrMoreTimes()->andReturn(array("\155\x61\x72\x6b\100\163\x77\x69\146\164\x6d\x61\151\154\145\162\56\x6f\162\147" => "\x4d\x61\x72\x6b")); $buf->shouldReceive("\167\162\x69\x74\x65")->once()->with("\115\101\111\114\40\x46\x52\x4f\115\x3a\74\x63\150\162\151\163\x40\x73\x77\x69\x66\164\155\x61\151\154\145\162\56\x6f\x72\x67\x3e\15\xa")->andReturn(1); $buf->shouldReceive("\x72\145\x61\144\114\151\156\x65")->once()->with(1)->andReturn("\62\65\60\40\117\x4b\xd\xa"); $buf->shouldReceive("\167\162\x69\x74\145")->once()->with("\x52\103\120\x54\x20\124\117\x3a\x3c\155\141\x72\x6b\x40\x73\167\151\146\164\155\x61\151\154\145\162\56\157\x72\147\76\15\xa")->andReturn(2); $buf->shouldReceive("\x72\x65\x61\144\x4c\151\x6e\145")->once()->with(2)->andReturn("\65\60\60\x20\116\157\164\40\x6e\x6f\x77\xd\xa"); $dispatcher->shouldReceive("\143\x72\145\141\164\145\x53\145\156\x64\x45\166\x65\156\x74")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\151\163\160\x61\164\143\x68\105\x76\x65\156\164")->once()->with($evt, "\163\145\156\x64\x50\x65\x72\146\x6f\x72\155\x65\x64"); $dispatcher->shouldReceive("\144\x69\x73\x70\141\x74\143\150\105\x76\145\156\164")->zeroOrMoreTimes(); $evt->shouldReceive("\142\x75\x62\142\154\145\103\x61\x6e\143\145\154\154\145\x64")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("\163\x65\x74\x46\141\151\x6c\x65\144\122\145\x63\x69\x70\x69\145\x6e\164\x73")->once()->with(array("\x6d\x61\x72\153\x40\x73\x77\x69\146\x74\x6d\141\x69\x6c\145\162\56\x6f\162\147")); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testSendEventHasResultFailedIfAllFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\x66\164\137\105\166\145\x6e\x74\163\x5f\x53\145\x6e\144\105\x76\x65\156\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("\x67\x65\164\x46\162\157\x6d")->zeroOrMoreTimes()->andReturn(array("\x63\x68\x72\151\163\x40\163\167\x69\146\164\155\141\x69\x6c\145\162\56\157\162\147" => null)); $message->shouldReceive("\147\x65\x74\124\157")->zeroOrMoreTimes()->andReturn(array("\155\141\x72\153\100\x73\167\151\146\164\155\x61\x69\x6c\145\x72\56\157\x72\x67" => "\x4d\141\162\153")); $buf->shouldReceive("\x77\x72\151\164\x65")->once()->with("\115\101\111\114\40\106\122\x4f\x4d\72\x3c\143\150\x72\151\x73\100\163\167\151\146\x74\x6d\141\151\x6c\x65\x72\56\157\x72\147\76\xd\xa")->andReturn(1); $buf->shouldReceive("\x72\x65\141\x64\114\151\x6e\145")->once()->with(1)->andReturn("\62\x35\60\x20\x4f\113\xd\xa"); $buf->shouldReceive("\167\x72\151\x74\145")->once()->with("\122\103\x50\x54\x20\x54\117\x3a\x3c\x6d\x61\x72\153\x40\x73\x77\x69\146\x74\155\x61\151\x6c\145\x72\56\x6f\x72\x67\76\15\12")->andReturn(2); $buf->shouldReceive("\162\145\x61\x64\x4c\x69\x6e\145")->once()->with(2)->andReturn("\x35\60\60\40\116\x6f\x74\40\156\x6f\167\15\12"); $dispatcher->shouldReceive("\143\162\x65\x61\x74\x65\x53\145\156\x64\x45\166\145\x6e\x74")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\163\160\141\164\143\150\x45\166\x65\156\164")->once()->with($evt, "\x73\145\x6e\x64\x50\x65\162\x66\157\x72\155\145\144"); $dispatcher->shouldReceive("\144\x69\x73\x70\141\164\x63\150\105\166\145\156\164")->zeroOrMoreTimes(); $evt->shouldReceive("\142\165\x62\142\x6c\145\103\141\156\x63\x65\154\x6c\x65\x64")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("\163\x65\164\122\x65\163\165\x6c\x74")->once()->with(Swift_Events_SendEvent::RESULT_FAILED); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testSendEventHasResultTentativeIfSomeFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\x66\x74\x5f\x45\166\145\156\x74\x73\137\123\145\156\144\x45\166\145\x6e\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("\147\x65\x74\x46\x72\x6f\155")->zeroOrMoreTimes()->andReturn(array("\143\150\x72\151\163\100\x73\x77\151\x66\x74\x6d\141\x69\x6c\145\x72\56\157\x72\x67" => null)); $message->shouldReceive("\147\x65\164\124\x6f")->zeroOrMoreTimes()->andReturn(array("\155\141\162\153\100\163\x77\x69\x66\x74\155\x61\x69\x6c\145\x72\56\x6f\x72\x67" => "\x4d\x61\x72\153", "\x63\150\x72\151\x73\100\x73\151\164\145\56\x74\154\x64" => "\x43\150\162\x69\163")); $buf->shouldReceive("\167\x72\x69\164\x65")->once()->with("\115\101\x49\x4c\x20\x46\122\117\x4d\72\74\x63\150\x72\151\163\100\163\167\x69\146\x74\x6d\141\x69\154\x65\162\x2e\x6f\162\x67\x3e\xd\12")->andReturn(1); $buf->shouldReceive("\x72\x65\x61\x64\114\x69\156\x65")->once()->with(1)->andReturn("\x32\65\x30\40\x4f\113\15\xa"); $buf->shouldReceive("\x77\x72\151\x74\x65")->once()->with("\122\x43\120\124\x20\124\117\x3a\x3c\155\141\x72\x6b\x40\163\167\151\x66\164\155\x61\151\x6c\145\162\x2e\157\162\x67\76\xd\xa")->andReturn(2); $buf->shouldReceive("\x72\145\x61\x64\114\151\x6e\145")->once()->with(2)->andReturn("\x35\x30\x30\40\x4e\x6f\x74\x20\x6e\x6f\167\xd\xa"); $dispatcher->shouldReceive("\143\162\x65\141\x74\x65\x53\145\x6e\x64\x45\166\145\x6e\164")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\x73\x70\141\x74\x63\x68\105\x76\145\156\164")->once()->with($evt, "\163\x65\x6e\x64\120\145\x72\x66\x6f\x72\x6d\x65\144"); $dispatcher->shouldReceive("\x64\151\x73\160\x61\164\143\150\105\166\145\156\x74")->zeroOrMoreTimes(); $evt->shouldReceive("\142\x75\142\x62\154\145\103\141\156\143\x65\x6c\x6c\145\144")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("\x73\x65\164\122\145\x73\x75\154\x74")->once()->with(Swift_Events_SendEvent::RESULT_TENTATIVE); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(1, $smtp->send($message)); } public function testSendEventHasResultSuccessIfNoFailures() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\167\151\x66\x74\137\105\166\145\156\x74\x73\137\x53\145\156\x64\105\166\145\x6e\x74")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("\x67\145\164\x46\162\x6f\x6d")->zeroOrMoreTimes()->andReturn(array("\x63\x68\x72\151\163\100\163\x77\x69\x66\164\x6d\x61\x69\154\145\x72\56\157\x72\x67" => null)); $message->shouldReceive("\x67\x65\164\124\157")->zeroOrMoreTimes()->andReturn(array("\155\x61\x72\153\x40\x73\167\151\x66\164\x6d\x61\151\x6c\x65\x72\56\157\x72\147" => "\115\141\162\x6b", "\x63\150\162\x69\163\100\163\151\164\x65\x2e\164\154\x64" => "\103\x68\x72\151\163")); $dispatcher->shouldReceive("\x63\x72\145\x61\164\145\x53\x65\156\x64\x45\166\145\x6e\164")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\144\151\163\160\141\x74\x63\x68\x45\x76\145\156\164")->once()->with($evt, "\x73\145\x6e\x64\120\x65\x72\x66\x6f\x72\x6d\x65\x64"); $dispatcher->shouldReceive("\x64\151\x73\x70\x61\x74\143\x68\105\166\145\x6e\164")->zeroOrMoreTimes(); $evt->shouldReceive("\142\x75\x62\x62\154\x65\x43\141\156\143\145\x6c\x6c\x65\144")->zeroOrMoreTimes()->andReturn(false); $evt->shouldReceive("\x73\x65\x74\x52\x65\163\x75\154\164")->once()->with(Swift_Events_SendEvent::RESULT_SUCCESS); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(2, $smtp->send($message)); } public function testCancellingEventBubbleBeforeSendStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\x66\x74\x5f\105\166\x65\156\164\163\137\x53\145\x6e\x64\x45\x76\x65\x6e\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $message = $this->createMessage(); $message->shouldReceive("\147\145\164\x46\x72\x6f\155")->zeroOrMoreTimes()->andReturn(array("\x63\x68\162\151\163\x40\x73\x77\x69\x66\x74\x6d\x61\151\154\145\x72\x2e\x6f\162\x67" => null)); $message->shouldReceive("\x67\145\x74\124\x6f")->zeroOrMoreTimes()->andReturn(array("\155\x61\162\153\x40\163\167\x69\146\x74\x6d\x61\x69\x6c\145\162\56\x6f\162\x67" => "\115\141\162\x6b")); $dispatcher->shouldReceive("\143\x72\145\141\x74\145\x53\145\x6e\144\105\x76\x65\156\x74")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\x73\x70\141\164\143\150\105\166\145\x6e\x74")->once()->with($evt, "\142\145\x66\x6f\162\145\x53\x65\156\x64\x50\145\x72\x66\x6f\x72\x6d\145\144"); $dispatcher->shouldReceive("\144\x69\163\160\x61\164\143\150\x45\166\x65\x6e\164")->zeroOrMoreTimes(); $evt->shouldReceive("\x62\165\x62\142\x6c\x65\x43\141\156\x63\145\x6c\x6c\x65\144")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); $this->assertEquals(0, $smtp->send($message)); } public function testStartingTransportDispatchesTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\x77\x69\146\x74\137\105\x76\145\x6e\x74\163\x5f\124\x72\141\156\163\160\x6f\162\x74\x43\150\x61\x6e\x67\x65\105\166\145\156\x74"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\x63\162\145\141\164\x65\124\162\141\156\x73\x70\x6f\162\x74\x43\x68\141\x6e\147\x65\105\x76\145\x6e\164")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\144\151\163\160\141\164\143\150\105\x76\145\156\164")->once()->with($evt, "\164\x72\141\x6e\x73\160\157\162\164\123\164\141\x72\164\x65\144"); $dispatcher->shouldReceive("\x64\x69\x73\160\141\164\x63\150\105\166\x65\156\164")->zeroOrMoreTimes(); $evt->shouldReceive("\142\165\x62\142\154\x65\103\141\156\x63\x65\154\154\x65\144")->atLeast()->once()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); } public function testStartingTransportDispatchesBeforeTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\151\146\164\x5f\x45\166\145\x6e\164\x73\137\124\162\x61\156\x73\160\157\162\164\x43\x68\141\156\147\x65\x45\166\x65\x6e\x74"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\143\x72\x65\x61\164\x65\x54\162\x61\156\163\160\157\162\164\x43\150\x61\156\x67\x65\x45\x76\x65\x6e\x74")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\x64\151\163\x70\x61\x74\x63\x68\x45\x76\x65\156\164")->once()->with($evt, "\142\145\146\x6f\162\x65\124\162\141\x6e\x73\x70\157\x72\x74\123\x74\141\162\164\x65\x64"); $dispatcher->shouldReceive("\x64\x69\163\x70\x61\x74\x63\x68\105\166\x65\156\x74")->zeroOrMoreTimes(); $evt->shouldReceive("\x62\165\142\x62\154\145\x43\141\x6e\143\145\x6c\x6c\145\144")->atLeast()->once()->andReturn(false); $this->finishBuffer($buf); $smtp->start(); } public function testCancellingBubbleBeforeTransportStartStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\167\151\146\x74\x5f\105\x76\x65\x6e\x74\x73\137\x54\x72\x61\x6e\163\160\157\162\x74\x43\x68\141\156\x67\x65\105\166\145\156\x74"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\x63\162\x65\141\x74\145\x54\x72\x61\156\163\160\x6f\162\x74\103\x68\141\156\147\145\x45\x76\145\156\164")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\144\151\x73\160\x61\x74\x63\x68\x45\x76\145\x6e\x74")->once()->with($evt, "\142\x65\x66\x6f\x72\145\124\162\141\156\x73\x70\157\162\164\x53\x74\x61\162\164\x65\144"); $dispatcher->shouldReceive("\x64\151\163\x70\141\x74\x63\150\105\166\145\x6e\x74")->zeroOrMoreTimes(); $evt->shouldReceive("\142\x75\142\x62\x6c\x65\x43\x61\x6e\x63\145\x6c\154\x65\x64")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); $this->assertFalse($smtp->isStarted(), "\x25\163\x3a\40\x54\x72\141\156\163\160\157\x72\164\x20\x73\x68\157\x75\154\144\x20\x6e\x6f\164\40\142\x65\40\163\164\x61\x72\x74\145\144\40\163\151\x6e\143\145\x20\145\166\145\x6e\164\40\142\165\142\142\154\x65\x20\167\141\163\x20\x63\141\156\143\145\x6c\x6c\145\144"); } public function testStoppingTransportDispatchesTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\167\x69\x66\x74\137\105\166\x65\156\164\163\x5f\x54\x72\141\x6e\x73\160\x6f\x72\x74\x43\x68\141\156\x67\x65\x45\166\145\156\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\x63\162\145\141\x74\145\x54\x72\141\156\163\160\x6f\162\164\103\150\x61\156\x67\145\105\x76\145\x6e\164")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\144\151\163\160\x61\164\143\150\105\166\x65\156\x74")->once()->with($evt, "\164\x72\x61\x6e\x73\x70\x6f\162\164\x53\x74\x6f\160\160\x65\x64"); $dispatcher->shouldReceive("\x64\x69\163\x70\x61\x74\x63\150\105\x76\145\x6e\x74")->zeroOrMoreTimes(); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); } public function testStoppingTransportDispatchesBeforeTransportChangeEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\x66\164\x5f\105\166\145\x6e\164\x73\137\124\x72\141\x6e\x73\x70\157\x72\164\x43\150\141\x6e\x67\145\105\x76\145\x6e\164")->shouldIgnoreMissing(); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\x63\162\145\141\x74\x65\x54\x72\141\x6e\x73\160\157\162\x74\103\150\x61\x6e\x67\145\105\166\145\x6e\x74")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\x73\160\141\x74\x63\150\105\x76\x65\156\x74")->once()->with($evt, "\142\145\146\157\x72\x65\x54\x72\141\x6e\x73\x70\x6f\x72\x74\x53\x74\x6f\160\160\x65\x64"); $dispatcher->shouldReceive("\144\151\x73\160\x61\x74\x63\x68\x45\x76\145\x6e\x74")->zeroOrMoreTimes(); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); } public function testCancellingBubbleBeforeTransportStoppedStopsEvent() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\167\x69\146\164\x5f\x45\x76\145\x6e\x74\163\137\x54\162\x61\156\163\160\x6f\x72\164\103\x68\x61\156\147\145\105\166\145\156\x74"); $smtp = $this->getTransport($buf, $dispatcher); $hasRun = false; $dispatcher->shouldReceive("\143\162\x65\x61\164\x65\x54\162\x61\x6e\x73\x70\157\x72\164\103\150\x61\156\147\145\x45\166\x65\x6e\x74")->atLeast()->once()->with($smtp)->andReturn($evt); $dispatcher->shouldReceive("\x64\151\x73\160\141\x74\x63\150\x45\x76\x65\156\x74")->once()->with($evt, "\142\x65\146\157\x72\x65\124\x72\x61\x6e\163\160\157\162\164\123\x74\x6f\x70\160\x65\144")->andReturnUsing(function () use(&$hasRun) { $hasRun = true; }); $dispatcher->shouldReceive("\144\x69\x73\x70\141\x74\x63\150\105\166\x65\156\164")->zeroOrMoreTimes(); $evt->shouldReceive("\x62\x75\142\x62\x6c\145\103\141\156\x63\145\x6c\x6c\x65\x64")->zeroOrMoreTimes()->andReturnUsing(function () use(&$hasRun) { return $hasRun; }); $this->finishBuffer($buf); $smtp->start(); $smtp->stop(); $this->assertTrue($smtp->isStarted(), "\x25\163\72\x20\x54\x72\x61\156\x73\x70\157\162\x74\40\x73\x68\157\165\x6c\144\40\156\x6f\164\x20\x62\145\x20\163\x74\x6f\160\x70\x65\144\x20\x73\151\156\143\145\x20\x65\x76\x65\x6e\164\40\x62\165\x62\x62\154\145\x20\167\x61\x73\40\x63\141\156\x63\145\x6c\x6c\145\144"); } public function testResponseEventsAreGenerated() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\146\x74\x5f\105\x76\x65\x6e\164\163\137\122\x65\163\160\x6f\156\x73\x65\105\x76\145\156\164"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\143\162\145\141\x74\x65\122\x65\x73\x70\x6f\156\163\145\x45\x76\145\156\164")->atLeast()->once()->with($smtp, \Mockery::any(), \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\151\x73\x70\141\164\143\x68\105\x76\145\x6e\164")->atLeast()->once()->with($evt, "\162\145\163\x70\x6f\x6e\x73\x65\x52\x65\x63\145\151\166\x65\x64"); $this->finishBuffer($buf); $smtp->start(); } public function testCommandEventsAreGenerated() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\167\x69\x66\164\137\105\x76\145\x6e\164\x73\x5f\x43\157\155\155\x61\x6e\144\x45\166\x65\156\164"); $smtp = $this->getTransport($buf, $dispatcher); $dispatcher->shouldReceive("\143\162\x65\x61\x74\x65\x43\157\x6d\x6d\x61\156\x64\x45\166\x65\x6e\164")->once()->with($smtp, \Mockery::any(), \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\x73\x70\x61\164\143\150\105\166\x65\x6e\164")->once()->with($evt, "\x63\157\155\x6d\141\156\144\123\x65\x6e\x74"); $this->finishBuffer($buf); $smtp->start(); } public function testExceptionsCauseExceptionEvents() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\123\x77\151\x66\x74\x5f\x45\166\145\156\x74\163\137\124\x72\x61\x6e\163\x70\x6f\x72\164\105\170\x63\145\160\x74\x69\x6f\x6e\x45\x76\145\x6e\x74"); $smtp = $this->getTransport($buf, $dispatcher); $buf->shouldReceive("\162\145\x61\x64\114\x69\156\x65")->atLeast()->once()->andReturn("\x35\x30\x33\x20\111\x27\x6d\x20\163\154\x65\x65\160\x79\x2c\40\x67\157\40\141\167\141\x79\41\xd\12"); $dispatcher->shouldReceive("\x63\x72\145\141\164\x65\124\x72\x61\156\x73\160\x6f\162\164\105\170\x63\145\x70\164\x69\157\156\105\x76\145\156\164")->zeroOrMoreTimes()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\x69\x73\160\141\x74\x63\150\105\x76\145\156\164")->once()->with($evt, "\145\170\143\x65\160\x74\x69\x6f\156\x54\150\162\x6f\167\x6e"); $evt->shouldReceive("\x62\x75\142\x62\154\145\x43\x61\156\143\145\154\x6c\145\x64")->atLeast()->once()->andReturn(false); try { $smtp->start(); $this->fail("\124\162\x61\x6e\x73\160\157\162\164\105\x78\x63\x65\x70\x74\151\157\156\40\163\x68\x6f\x75\x6c\144\x20\142\145\40\x74\150\x72\x6f\167\156\x20\157\x6e\40\151\x6e\x76\x61\x6c\151\144\40\162\x65\163\x70\x6f\x6e\163\x65"); } catch (Swift_TransportException $e) { } } public function testExceptionBubblesCanBeCancelled() { $buf = $this->getBuffer(); $dispatcher = $this->createEventDispatcher(false); $evt = $this->getMockery("\x53\167\x69\146\x74\137\105\x76\x65\156\x74\163\137\x54\162\x61\x6e\163\x70\157\162\x74\x45\x78\143\145\160\164\x69\157\156\x45\166\145\x6e\164"); $smtp = $this->getTransport($buf, $dispatcher); $buf->shouldReceive("\162\145\x61\x64\114\x69\x6e\145")->atLeast()->once()->andReturn("\x35\x30\63\x20\x49\x27\x6d\x20\163\x6c\145\x65\x70\171\54\x20\147\157\x20\141\167\141\x79\41\15\12"); $dispatcher->shouldReceive("\143\162\145\x61\164\145\124\x72\141\x6e\x73\x70\x6f\162\x74\x45\x78\x63\x65\x70\x74\x69\x6f\156\105\166\x65\x6e\164")->twice()->with($smtp, \Mockery::any())->andReturn($evt); $dispatcher->shouldReceive("\x64\151\163\x70\141\164\x63\150\x45\x76\x65\x6e\x74")->twice()->with($evt, "\x65\170\143\145\x70\x74\x69\x6f\x6e\124\x68\162\157\167\156"); $evt->shouldReceive("\x62\165\x62\x62\154\x65\103\141\x6e\x63\x65\154\154\x65\x64")->atLeast()->once()->andReturn(true); $this->finishBuffer($buf); $smtp->start(); } protected function createEventDispatcher($stub = true) { return $this->getMockery("\x53\x77\x69\146\x74\137\105\x76\145\x6e\x74\163\137\105\166\145\x6e\164\104\x69\x73\x70\x61\x74\x63\150\145\x72")->shouldIgnoreMissing(); } }
Function Calls
None |
Stats
MD5 | 6e89b3335220a2fae7cfaf5e435ae0fa |
Eval Count | 0 |
Decode Time | 106 ms |