$expect = new Expectation(array()); $expect->notToBe(array()); }); }); }); context('toEqual', function () { it('returns if the value is strictly equal', function () { shouldReturn(function () { $expect = new Expectation(''); $expect->toBe(''); }); }); it('throws exception if not strictly equal', function () { shouldThrowException(function () { $expect = new Expectation(''); $expect->toBe(null); }); }); }); context('notToEqual', function () { it('returns if the value is not strictly equal', function () { shouldReturn(function () { $expect = new Expectation(array()); $expect->notToEqual(''); }); }); it('throws exception if strictly equal', function () { shouldThrowException(function () { $expect = new Expectation(array()); $expect->notToEqual(array()); });