GearmanClientCallbackExceptionEventTest.php 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * RSQueueBundle for Symfony2
  4. *
  5. * Marc Morera 2013
  6. */
  7. namespace Mmoreram\GearmanBundle\Tests\Event;
  8. use Mmoreram\GearmanBundle\Event\GearmanClientCallbackExceptionEvent;
  9. /**
  10. * Tests GearmanClientCallbackExceptionEventTest class
  11. */
  12. class GearmanClientCallbackExceptionEventTest extends \PHPUnit_Framework_TestCase
  13. {
  14. /**
  15. * @var GearmanClientCallbackExceptionEvent
  16. *
  17. * Object to test
  18. */
  19. private $gearmanClientCallbackExceptionEvent;
  20. /**
  21. * Setup
  22. */
  23. public function setUp()
  24. {
  25. $this->gearmanClientCallbackExceptionEvent = new GearmanClientCallbackExceptionEvent($this->gearmanTask);
  26. }
  27. /**
  28. * Tests if Event extends needed classes
  29. */
  30. public function testInstancesOf()
  31. {
  32. $this->assertInstanceOf('Symfony\Component\EventDispatcher\Event', $this->gearmanClientCallbackExceptionEvent);
  33. }
  34. }