assertSame( IEditConstraint::CONSTRAINT_PASSED, $constraint->checkConstraint() ); $status = $constraint->getLegacyStatus(); $this->assertStatusGood( $status ); } /** * Assert that the constraint fails with the specified status code * @param IEditConstraint $constraint * @param int $statusCode */ public function assertConstraintFailed( IEditConstraint $constraint, int $statusCode ) { $this->assertSame( IEditConstraint::CONSTRAINT_FAILED, $constraint->checkConstraint() ); $status = $constraint->getLegacyStatus(); $this->assertStatusNotGood( $status ); $this->assertStatusValue( $statusCode, $status ); } }