atoum/atoum — pull request #353 by jubianchi (2014-09-22 14:49:55+00:00)
Title: Closure asserter test instance

This allows users on PHP 5.3 to do:

```php
given($this->newTestedInstance)
->then
->exception(function($test) {
$test->testedInstance->throwingException();
})
->isInstanceOf('runtimeException')
->hasMessage('Random exception message')

// Instead of
->given(
$test = $this,
$this->newTestedInstance
)
->then
->exception(function() use ($test) {
$test->testedInstance->throwingException();
})
->isInstanceOf('runtimeException')
->hasMessage('Random exception message')
;
}
}
```

Bye bye `use`!