Example #1
0
 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');
 }
Example #2
0
 /**
  * Get the value of a form element.
  *
  * @return mixed
  */
 public function getValue()
 {
     return $this->request->file($this->getName());
 }