function it_should_return_element_value_from_request(NodeInterface $node, RequestInterface $request) { $node->getAttribute('name')->willReturn('foo')->shouldBeCalled(); $request->file('foo')->willReturn('bar')->shouldBeCalled(); $this->getValue()->shouldBe('bar'); }
/** * Get the value of a form element. * * @return mixed */ public function getValue() { return $this->request->file($this->getName()); }