X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fphpunit%2Fphpunit%2Ftests%2FRegression%2FGitHub%2F244.phpt;fp=vendor%2Fphpunit%2Fphpunit%2Ftests%2FRegression%2FGitHub%2F244.phpt;h=b517e5c0ad87d7b648da6605076da1a1e7bc6eb8;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hp=0000000000000000000000000000000000000000;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt b/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt new file mode 100644 index 000000000..b517e5c0a --- /dev/null +++ b/vendor/phpunit/phpunit/tests/Regression/GitHub/244.phpt @@ -0,0 +1,32 @@ +--TEST-- +GH-244: Expected Exception should support string codes +--FILE-- + +--EXPECTF-- +PHPUnit %s by Sebastian Bergmann and contributors. + +.FFF + +Time: %s, Memory: %s + +There were 3 failures: + +1) Issue244Test::testFails +Failed asserting that '123StringCode' is equal to expected exception code 'OtherString'. + +2) Issue244Test::testFailsTooIfExpectationIsANumber +Failed asserting that '123StringCode' is equal to expected exception code 123. + +3) Issue244Test::testFailsTooIfExceptionCodeIsANumber +Failed asserting that 123 is equal to expected exception code '123String'. + +FAILURES! +Tests: 4, Assertions: 8, Failures: 3.