Пример #1
0
 /**
  * @covers Exads\TestClient
  * @test
  */
 public function test_put_method_not_available()
 {
     $returnData = 'some data';
     $client = new TestClient('http://localhost');
     $this->assertSame($returnData, $client->put('does_not_exist', $returnData));
 }
 /**
  * @covers Exads\TestClient
  * @test
  * @expectedException Exception
  */
 public function test_put_method_not_available()
 {
     $client = new TestClient('http://localhost');
     $client->put('does_not_exist', 'PUT method not available');
 }