delete obsoleted files obsoleted/ Enabled 3 delete temporary files temporary/ Enabled 2022-10-12T00:00:00.000Z 2022-10-12T00:00:00.000Z BBBB; public function testParseValidXml() { $response = new ResponseCore(array(), $this->validXml, 200); $result = new GetLifecycleResult($response); $this->assertTrue($result->isOK()); $this->assertNotNull($result->getData()); $this->assertNotNull($result->getRawResponse()); $lifecycleConfig = $result->getData(); $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($lifecycleConfig->serializeToXml())); } private function cleanXml($xml) { return str_replace("\n", "", str_replace("\r", "", $xml)); } public function testInvalidResponse() { $response = new ResponseCore(array(), $this->validXml, 300); try { new GetLifecycleResult($response); $this->assertTrue(false); } catch (OssException $e) { } } }