it('throws exception if the length of an array is not 0', function () { shouldThrowException(function () { $expect = new Expectation(array('')); $expect->toBeEmpty(); }); }); it('returns if the length of a string is 0', function () { shouldReturn(function () { $expect = new Expectation(''); $expect->toBeEmpty(); }); }); it('throws exception if the length of a string is not 0', function () { shouldThrowException(function () { $expect = new Expectation('0'); $expect->toBeEmpty(); }); }); }); context('notToBeEmpty', function () { it('returns if the length of an array is not 0', function () { shouldReturn(function () { $expect = new Expectation(array('')); $expect->notToBeEmpty(); }); }); it('throws exception if the length of an array is 0', function () { shouldThrowException(function () { $expect = new Expectation(array()); $expect->notToBeEmpty(); });