/** * Test Message * * @param string $responseString * @param array $realInfo * @dataProvider getServerResponseString */ public function testMessage($responseString, $realInfo) { $messages = json_decode($responseString, true); $message = new Message($messages[0]); $this->assertEquals($message->toArray(), $realInfo); }