/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->filterChain = new SpamPost(array('bar' => 'baz')); $this->filterChain->proceed(new ValidPost(array('bar' => 'baz', 'foo' => 'bar'))); }
public function makeRequest() { $this->filterChain = new SpamPost(); $request = $this->filterChain->proceed(new ValidPost($this->job)); return $request; }