Ejemplo n.º 1
0
             $expect = new Expectation(array());
             $expect->toBe('');
         });
     });
 });
 context('notToBe', function () {
     it('returns if the value is not strictly equal', function () {
         shouldReturn(function () {
             $expect = new Expectation(array());
             $expect->notToBe('');
         });
     });
     it('throws exception if strictly equal', function () {
         shouldThrowException(function () {
             $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);
         });
Ejemplo n.º 2
0
     it('throws exception if not strictly equal', function () {
         shouldThrowException(function () {
             $expect = new Expectation([]);
             $expect->toBe('');
         });
     });
 });
 context('notToBe', function () {
     it('returns if the value is not strictly equal', function () {
         $expect = new Expectation([]);
         $expect->notToBe('');
     });
     it('throws exception if strictly equal', function () {
         shouldThrowException(function () {
             $expect = new Expectation([]);
             $expect->notToBe([]);
         });
     });
 });
 context('toEqual', function () {
     it('returns if the value is strictly equal', function () {
         $expect = new Expectation('');
         $expect->toBe('');
     });
     it('throws exception if not strictly equal', function () {
         shouldThrowException(function () {
             $expect = new Expectation('');
             $expect->toBe(null);
         });
     });
 });