MAKS\AmqpAgent\RPC\AbstractEndpoint::connect
        Opens a connection with RabbitMQ server.
        
        
        Signature
        
          public function connect([array
        $connectionOptions = ] )
            
        
        Parameters
        
          - $connectionOptions—
                array
- [optional] The overrides for the default connection options of the RPC endpoint.
 
 
 
Returns
        
          - AbstractEndpoint
 
Errors/Exceptions
        
          - 
            
              RPCEndpointException
            
- If the endpoint is already connected.
Defined by Interface
        
          
            AbstractEndpointInterface
          
        
        Test Coverage
        
          Information
          
            - Coverage: 11/11 Lines (100%)
- Tests: 11
- Passed: 11 (100%)
Tests
          
            - [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingConnectMethodReturnsSelf
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingConnectMethodRaisesAnExceptionIfAConnectionIsOpenAlready
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testGetConnectionMethodReturnsAMQPStreamConnection
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodWhenTheEndpointIsConnected
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodRaisesAnExceptionIfAnErrorOccurred
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testOnMethodExecutesACallbackSuccessfully
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testConnectMethodReturnsSelf
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testRequestMethodViaAliasMethodCall
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testAnExceptionIsRaisedIfCorrelationIdOfTheResponseIsNotTheSameAsTheRequest
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ServerEndpointTest::testRespondMethodViaAliasMethodServe
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ServerEndpointTest::testAnExceptionIsRaisedIfPassedCallbackDoesNotReturnString