/** * @expectedException \InvalidArgumentException */ public function testGetItemByNotExistingCode() { $adjustments = ['adj1']; $collection = new Collection($this->adjustmentPool, $adjustments); $collection->getItemByCode('not_existing_code'); }