Ejemplo n.º 1
0
 /**
  * @covers Exads\Client
  * @test
  */
 public function test_malformed_json_should_return_error()
 {
     $invalidJson = '{"token":"34fb12b579a9e6bc7a28238db3ff79aed04827ab","type":"Bearer","expires_in":3600';
     $expectedError = 'Syntax error';
     $client = new Client('http://localhost');
     $this->assertSame($expectedError, $client->decode($invalidJson));
 }