tests: Support passing null to setExpectedException() in compat layer
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 14 Apr 2018 23:10:24 +0000 (16:10 -0700)
committerLegoktm <legoktm@member.fsf.org>
Sun, 15 Apr 2018 08:10:35 +0000 (08:10 +0000)
commit9d78fc2c872daf0eed70a1d63a09cc5b34711d0f
tree752ea32b33973d8818d16a732974da584777271e
parent7b26ce7f896d531fe60cc827ea4cb0aec205561c
tests: Support passing null to setExpectedException() in compat layer

PHPUnit 4's setExpectedException() accepted null for the exception class
name to indicate that no exception would be thrown. PHPUnit 6's
expectException() is stricter and only allows strings.

Change-Id: I8c8783faec808a8f111af2ee533f5c61feccf099
tests/phpunit/PHPUnit4And6Compat.php