$expect = new Expectation(1); $expect->toEql(false); }); }); }); context('notToEql', function () { it('returns if the value is not loosely equal', function () { shouldReturn(function () { $expect = new Expectation(1); $expect->notToEql(false); }); }); it('throws exception if loosely equal', function () { shouldThrowException(function () { $expect = new Expectation(0); $expect->notToEql(false); }); }); }); context('toBeEmpty', function () { it('returns if the length of an array is 0', function () { shouldReturn(function () { $expect = new Expectation(array()); $expect->toBeEmpty(); }); }); it('throws exception if the length of an array is not 0', function () { shouldThrowException(function () { $expect = new Expectation(array('')); $expect->toBeEmpty(); });