* @since 2013 */ namespace Mmoreram\GearmanBundle\Tests\Service; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; /** * Tests GearmanClient class */ class GearmanClientTest extends WebTestCase { /** * Test service can be instanced through container */ public function testGearmanClientLoadFromContainer() { static::$kernel = static::createKernel(); static::$kernel->boot(); $this->assertInstanceOf('\Mmoreram\GearmanBundle\Service\GearmanClient', static::$kernel->getContainer()->get('gearman')); } }