/** * @test */ public function assignMultipleCanOverridePreviouslyAssignedValues() { $this->templateVariableContainer->expects($this->at(0))->method('add')->with('foo', 'FooValue'); $this->templateVariableContainer->expects($this->at(1))->method('add')->with('foo', 'FooValueOverridden'); $this->templateVariableContainer->expects($this->at(2))->method('add')->with('bar', 'BarValue'); $this->view->assign('foo', 'FooValue'); $this->view->assignMultiple(array('foo' => 'FooValueOverridden', 'bar' => 'BarValue')); }
/** * Constructor * * @param ActionRequest $request The current action request. If none is specified it will be created from the environment. * @param array $options */ public function __construct(ActionRequest $request = null, array $options = []) { $this->request = $request; parent::__construct($options); }