assertConstraintPassed( $constraint ); } public function testFailure() { $constraint = new AccidentalRecreationConstraint( true, false ); $this->assertConstraintFailed( $constraint, IEditConstraint::AS_ARTICLE_WAS_DELETED ); } }