/** * @since 4.0 * @expectedException InvalidArgumentException */ public function testDetachRuleWrongStage() { $rule = function () { }; $this->object->detachRule('parse', $rule, 'wrong'); }