$expect = new Expectation(2); $expect->toBeLessThan(1); }); }); }); context('notToBeLessThan', function () { it('returns if the value is not less than the min', function () { shouldReturn(function () { $expect = new Expectation(2); $expect->notToBeLessThan(1); }); }); it('throws exception if the value is less than the min', function () { shouldThrowException(function () { $expect = new Expectation(1); $expect->notToBeLessThan(2); }); }); }); context('toBeBelow', function () { it('returns if the value is less than the max', function () { shouldReturn(function () { $expect = new Expectation(1); $expect->toBeBelow(2); }); }); it('throws exception if it is not less than the max', function () { shouldThrowException(function () { $expect = new Expectation(2); $expect->toBeBelow(1); });