lithium\test\Integration::_init()

protected method

Auto init for applying Integration filter to this test class.

Returns

void

Source

	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;
				}
			}
		});
	}