public function testDispatchCommandSuccessful() { $connection = new \Pheanstalk\Connection(self::SERVER_HOST, self::SERVER_PORT); $command = new \Pheanstalk\Command\UseCommand('test'); $response = $connection->dispatchCommand($command); $this->assertIsA($response, '\\Pheanstalk\\Response'); }