/** * This test is possibly in the wrong place - it's not a unit test, but it's not full integration either. It's just * handy to be able to throw some XML at the resource and test it handles it. * * @dataProvider validationProvider */ public function testValidation($xml, $valid) { $test = \OEModule\PASAPI\resources\PatientAppointment::fromXml('V1', $xml); $test->id = 'test'; $res = $test->validate(); // just a handy debugger for when adding other XML inputs if ($valid && !$res) { var_dump($test->errors); } $this->assertEquals($valid, $res); }