GearmanClientTest.php 651 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 GearmanClient class
  12. */
  13. class GearmanClientTest extends WebTestCase
  14. {
  15. /**
  16. * Test service can be instanced through container
  17. */
  18. public function testGearmanClientLoadFromContainer()
  19. {
  20. static::$kernel = static::createKernel();
  21. static::$kernel->boot();
  22. $this->assertInstanceOf('\Mmoreram\GearmanBundle\Service\GearmanClient', static::$kernel->getContainer()->get('gearman'));
  23. }
  24. }