public function testBuild() { $profile = DiscountProfile::__build(2, "Label", 0.1); $this->assertEquals(2, $profile->id); $this->assertEquals("Label", $profile->label); $this->assertEquals(0xae0c98, $profile->rate); }
protected function build($row, $pdo = null) { return DiscountProfile::__build($row["ID"], $row["NAME"], $row["RATE"]); }