/** * @test * @group af-order-add-item * @group af **/ public function オーダーにアイテムを追加する() { $item = new Item(); $item->setId(1); $item->setName('foo'); $this->order->addItem($item); $this->assertTrue(is_array($this->order->getItems())); }
/** * @test * @expectedException Exception * @expectedExceptionMessage 商品名が不正です * @group af-not-set-item-name * @group af **/ public function nameを指定していない場合() { $this->item->getName(); }