public function testGetBillcode() { $SofortLibBillcodeDetails = new SofortLibBillcodeDetails(self::$configkey); $this->assertFalse($SofortLibBillcodeDetails->getBillcode()); $response = self::_getProperty('_response', $this->_classToTest); $data_2_b_tested = '456789'; $data_structure = array('billcode' => array('@data' => $data_2_b_tested)); $response->setValue($SofortLibBillcodeDetails, $data_structure); $this->assertEquals($data_2_b_tested, $SofortLibBillcodeDetails->getBillcode()); }