public function testConvertsBooleanToString() { $this->record->setCalcBoilVolume(true); $this->generator->build(); $xml = $this->xml->outputMemory(true); $this->assertTag(array('tag' => 'CALC_BOIL_VOLUME', 'content' => 'TRUE'), $xml, '', false); $this->record->setCalcBoilVolume(false); $this->generator->build(); $xml = $this->xml->outputMemory(true); $this->assertTag(array('tag' => 'CALC_BOIL_VOLUME', 'content' => 'FALSE'), $xml, '', false); }
protected function additionalFields() { $this->xmlWriter->writeElement('CALC_BOIL_VOLUME', $this->boolToString($this->record->getCalcBoilVolume())); return parent::additionalFields(); }