public function testConnectionFailsToIncorrectPort() { $connection = new Pheanstalk_Connection(self::SERVER_HOST, self::SERVER_PORT + 1); $this->_expectDeprecatedConnectionMethod('useTube'); $this->expectException('Pheanstalk_Exception_ConnectionException'); $connection->useTube('test'); }