MAKS\AmqpAgent\RPC\ClientEndpoint::connect
Opens a connection with RabbitMQ server.
Signature
public function connect([array
$connectionOptions = ] )
Parameters
$connectionOptions
—
array
Returns
- ClientEndpoint
Errors/Exceptions
-
RPCEndpointException
Defined by Interface
AbstractEndpointInterface
Parent Implementation
Test Coverage
Information
- Coverage: 18/18 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testConnectMethodReturnsSelf
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testRequestMethodViaAliasMethodCall
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testAnExceptionIsRaisedIfCorrelationIdOfTheResponseIsNotTheSameAsTheRequest