MAKS\AmqpAgent\RPC\AbstractEndpoint::ping
The time needed for the round-trip to RabbitMQ server in milliseconds.
Note that if the endpoint is not connected yet, this method will establish a new connection only for checking.
Signature
public function ping()
Returns
- float
- A two decimal points rounded float.
Test Coverage
Information
- Coverage: 41/42 Lines (97.619047619048%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodWhenTheEndpointIsConnected
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodWhenTheEndpointIsNotConnected
- [ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodRaisesAnExceptionIfAnErrorOccurred