GearmanDescriberTest.php 910 B

123456789101112131415161718192021222324252627282930313233343536373839
  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\Service;
  13. use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
  14. /**
  15. * Tests GearmanDescriber class
  16. */
  17. class GearmanDescriberTest extends WebTestCase
  18. {
  19. /**
  20. * Test service can be instanced through container
  21. */
  22. public function testGearmanDescriberLoadFromContainer()
  23. {
  24. static::$kernel = static::createKernel();
  25. static::$kernel->boot();
  26. $this->assertInstanceOf(
  27. '\Mmoreram\GearmanBundle\Service\GearmanDescriber',
  28. static::$kernel
  29. ->getContainer()
  30. ->get('gearman.describer')
  31. );
  32. }
  33. }