/** * Test: incorrect xml-file */ public function test_notGarmin() { $this->object->parseString('<any><xml><file></file></xml></any>'); $this->assertTrue($this->object->failed()); $this->assertEmpty($this->object->objects()); $this->assertNotEmpty($this->object->getErrors()); }
/** * Construct for single file from garmin communicator */ private function constructForSingleFileFromGarminCommunicator() { $Importer = new ImporterFiletypeTCX(); $Importer->parseCompressedString($_POST['data']); $this->addObjects($Importer->objects()); $this->addErrors($Importer->getErrors()); }