Exemplo n.º 1
0
 function testPricesForCode2()
 {
     $p = new PriceRef(false);
     $set = array('code' => 'b', 'currency' => 'AUD', 'millicents' => 12300);
     $new_id = $p->add($set);
     $ps = PriceRef::prices_for_code('b');
     $this->assertEquals(5, count($ps));
     $p = $ps[$new_id];
     $m = $p->money();
     $this->assertEquals('$1.23 AUD', $m->show_with_code());
 }