/** * Assert a given condition does not match this value * * @param unittest.assert.Condition $condition * @return self */ public function isNot(Condition $condition) { $this->failed || Assertions::verify(function () use($condition) { if ($condition->matches($this->value)) { $this->failed = true; return new AssertionFailedError('Failed to verify that ' . $condition->describe($this->value, false)); } else { return null; } }); return $this; }