get(''); // then $this->assertEquals(2, $response->getBody()->a->b); $this->assertEquals("a", $response->getBody()->a->c); } public function testShouldFailParseWrongFile() { // given $cut = new PJsonCurl('file://testInvaliud.json'); //then $this->setExpectedException('PurpleCode\PCurl\PCurlException'); // when $response = $cut->get(''); } }