예제 #1
0
 /**
  * @param array $orders
  * @return SimpleOrder[]
  */
 protected function generateOrders(array $orders)
 {
     return array_map(function (stdClass $object) {
         return SimpleOrder::createFromObject($object);
     }, $orders);
 }
 public function testFactorySetsVolume()
 {
     $this->assert($this->order->getVolume(), equals, 0.01);
 }