public function testBooleansGetConverted() { $mA = new Matrix(array(array(true, false, true))); $test = <<<EOF +------+ | 1 0 1| +------+ EOF; $this->assertEquals($test, $this->object->format($mA)); }
/** * Format the matrix contents for outputting. * * @param Chippyash\Math\Matrix\NumericMatrix $mA Matrix to format * @param array $options Options for formatter * * @return string */ public function format(Matrix $mA, array $options = array()) { $this->setOptions($options); return parent::format($this->convertEntries($mA), $options); }