예제 #1
0
             $expect = new Expectation(2);
             $expect->notToBeGreaterThan(1);
         });
     });
 });
 context('toBeAbove', function () {
     it('returns if the value is greater than the min', function () {
         shouldReturn(function () {
             $expect = new Expectation(2);
             $expect->toBeAbove(1);
         });
     });
     it('throws exception if it is not greater than the min', function () {
         shouldThrowException(function () {
             $expect = new Expectation(1);
             $expect->toBeAbove(2);
         });
     });
 });
 context('notToBeAbove', function () {
     it('returns if the value is not greater than the min', function () {
         shouldReturn(function () {
             $expect = new Expectation(1);
             $expect->notToBeAbove(2);
         });
     });
     it('throws exception if the value is greater than the min', function () {
         shouldThrowException(function () {
             $expect = new Expectation(2);
             $expect->notToBeAbove(1);
         });