Source

						public function testApply() {
		$subject = new ErrorHandlerTest();
		ErrorHandler::apply(array($subject, 'throwException'), array(), function($details) {
			return $details['exception']->getMessage();
		});
		$this->assertEqual('foo', $subject->throwException());
	}