@@ -43,7 +43,10 @@ function correctExpectations()
4343 [ function () { expect ('foo bar ' )->toStartWith ('foo ' ); } ],
4444 [ function () { expect ('foo bar ' )->toEndWith ('bar ' ); } ],
4545 [ function () { expect ('foo bar ' )->toMatch ('/bar/ ' ); } ],
46- [ function () { expect ((new Foo ()))->toThrow ('InvalidArgumentException ' )->duringThrowException (); } ]
46+ [ function () { expect ((new Foo ()))->toThrow ('InvalidArgumentException ' )->duringThrowException (); } ],
47+ [ function () { expect ((new Foo ()))->toTrigger (E_USER_DEPRECATED )->duringTriggerError (); } ],
48+ [ function () { expect (1.444447777 )->toBeApproximately (1.444447777 , 1.0e-9 ); } ],
49+ [ function () { expect ((new Foo ())->getIterator ())->toIterateAs (new \ArrayIterator (['Foo ' , 'Bar ' ])); } ],
4750 ];
4851 }
4952
@@ -67,7 +70,9 @@ function incorrectExpectations()
6770 [ function () { expect ('foo bar ' )->toStartWith ('baz ' ); } ],
6871 [ function () { expect ('foo bar ' )->toEndWith ('baz ' ); } ],
6972 [ function () { expect ('foo bar ' )->toMatch ('/baz/ ' ); } ],
70- [ function () { expect ((new Foo ()))->toThrow ('AnotherException ' )->duringThrowException (); } ]
73+ [ function () { expect ((new Foo ()))->toThrow ('AnotherException ' )->duringThrowException (); } ],
74+ [ function () { expect (1.444447777 )->toBeApproximately (1.444447778 , 1.0e-9 ); } ],
75+ [ function () { expect ((new Foo ())->getIterator ())->toIterateAs (new \ArrayIterator (['Bar ' , 'Foo ' ])); } ]
7176 ];
7277 }
7378}
0 commit comments