public function testFormatAttribute() { $qp = new QuoteProduct(); $qp->adjustmentType = 'percent'; $qp->adjustment = 5; $this->assertEquals('5%', $qp->formatAttribute('adjustment')); }