fixture = new API\RestTesterClass(); $this->fixture->setUrl('/settings'); } protected function tearDown() { $this->fixture = NULL; } function testGet() { $this->fixture->setType('GET'); $this->assertTrue($this->fixture->isSuccess()); } function testPatch() { $this->fixture->setType('PATCH'); $array= array( "customTest"=> array("test"=> "success"), ); $json= json_encode($array); $this->assertTrue( $this->fixture->isSuccess($json, true) ); /* $config= new Utils\Configurator(); $configPath= $config->get('configPath'); $FileManager= new Utils\FileManager(); $initContent= $FileManager->getContent($configPath); if (!empty($initContent)) { $array= array( "customTest"=> array("test"=> "success"), ); $json= json_encode($array); $this->assertTrue( $this->fixture->isSuccess($json) ); $FileManager->setContent($initContent, $configPath); } */ } } ?>