GearmanCallbacksDispatcherTest.php 966 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Gearman Bundle for Symfony2
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. *
  8. * Feel free to edit as you please, and have fun.
  9. *
  10. * @author Marc Morera <yuhu@mmoreram.com>
  11. */
  12. namespace Mmoreram\GearmanBundle\Tests\Dispatcher;
  13. use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
  14. /**
  15. * Tests GearmanCallbacksDispatcher class
  16. */
  17. class GearmanCallbacksDispatcherTest extends WebTestCase
  18. {
  19. /**
  20. * Test service can be instanced through container
  21. */
  22. public function testGearmanCallbacksDispatcherLoadFromContainer()
  23. {
  24. static::$kernel = static::createKernel();
  25. static::$kernel->boot();
  26. $this->assertInstanceOf(
  27. '\Mmoreram\GearmanBundle\Dispatcher\GearmanCallbacksDispatcher',
  28. static::$kernel
  29. ->getContainer()
  30. ->get('gearman.dispatcher.callbacks')
  31. );
  32. }
  33. }