GearmanClientCallbackExceptionEventTest.php 934 B

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