/** * When clearing collected results, any stored quantity results should * be removed from storage, preventing them from being reused. */ public function testClearResults() { // Side-effect test: results currently stored in session, setting the // sessions quantity results to null will remove any existing results // from being reused. $this->_inventorySession->expects($this->once())->method('setQuantityResults')->with($this->identicalTo(null))->will($this->returnSelf()); $this->assertSame($this->_quantityCollector, $this->_quantityCollector->clearResults()); }