public function test_msgpack() { $client = OtherTestService::client(); try { $response = $client->reverse('hey'); } catch (\Exception $e) { // This shouldn't happen echo 'One: ' . implode("\r\n", $e->errors) . "\r\n"; } $this->assertEquals('yeh', $response); // Our custome MyClient class stores profiling data in the response, and makes the response publicly available $profile = $client->response->oob('profile'); $this->assertInternalType('array', $profile); // Need to test profile format too $this->assertCount(5, $profile); }
<?php include '../setup.other-test.php'; $server = OtherTestService::server(new OtherTestServiceHandler()); $server->run();