$expect = new Expectation(1); $expect->toBeTrue(); }); }); }); context('notToBeTrue', function () { it('returns if the value is not true', function () { shouldReturn(function () { $expect = new Expectation(1); $expect->notToBeTrue(); }); }); it('throws exception if true', function () { shouldThrowException(function () { $expect = new Expectation(true); $expect->notToBeTrue(); }); }); }); context('toBeFalse', function () { it('returns if the value is false', function () { shouldReturn(function () { $expect = new Expectation(false); $expect->toBeFalse(); }); }); it('throws exception if not false', function () { shouldThrowException(function () { $expect = new Expectation(0); $expect->toBeFalse(); });