lithium\test\Integration::_init PHP Метод

_init() защищенный Метод

Auto init for applying Integration filter to this test class.
protected _init ( ) : void
Результат void
    protected function _init()
    {
        parent::_init();
        $this->applyFilter('run', function ($self, $params, $chain) {
            $before = $self->results();
            $chain->next($self, $params, $chain);
            $after = $self->results();
            while (count($after) > count($before)) {
                $result = array_pop($after);
                if ($result['result'] === 'fail') {
                    return false;
                }
            }
        });
    }