GearmanExecuteTest.php 663 B

1234567891011121314151617181920212223242526272829
  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\Service;
  9. use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
  10. /**
  11. * Tests GearmanExecute class
  12. */
  13. class GearmanExecuteTest extends WebTestCase
  14. {
  15. /**
  16. * Test service can be instanced through container
  17. */
  18. public function testGearmanExecuteLoadFromContainer()
  19. {
  20. static::$kernel = static::createKernel();
  21. static::$kernel->boot();
  22. $this->assertInstanceOf('\Mmoreram\GearmanBundle\Service\GearmanExecute', static::$kernel->getContainer()->get('gearman.execute'));
  23. }
  24. }