lithium\test\Integration::_init()
Overrides
lithium\core\ObjectDeprecated::_init()
Auto init for applying Integration filter to this test class.
Returns
voidSource
protected function _init() {
parent::_init();
Filters::apply($this, 'run', function($params, $next) {
$before = $this->results();
$next($params);
$after = $this->results();
while (count($after) > count($before)) {
$result = array_pop($after);
if ($result['result'] === 'fail') {
return false;
}
}
});
}