everzet/symfony — pull request #4 by Dattaya (2012-05-24 14:10:51+00:00)
Title: Resource watcher, onConsecutiveCalls

```
protected function setResourceExists($resource, $exists)
{
if (is_array($exists)) {
$resource
->expects($this->any())
->method('exists')
->will($this->onConsecutiveCalls($exists));
```

According to the doc http://www.phpunit.de/manual/3.6/en/test-doubles.html#test-doubles.stubs.examples.StubTest7.php:
`$this->onConsecutiveCalls(2, 3, 5, 7)` it does not support passing an array to return values from it on each new call. It should be changed to `->will(call_user_func_array(array($this, 'onConsecutiveCalls'), $exists));`.

I fixed it but take a look at `testDeepFileCreated`, I don't know what you wanted to test exactly and therefore I don't know whether I changed it appropriately.