/** * @covers Exads\TestClient * @test */ public function test_post_method_not_available() { $returnData = 'some data'; $client = new TestClient('http://localhost'); $this->assertSame($returnData, $client->post('does_not_exist', $returnData)); }
/** * @covers Exads\TestClient * @test * @expectedException Exception */ public function test_post_method_not_available() { $client = new TestClient('http://localhost'); $res = $client->post('does_not_exist', 'POST method not available'); }