ApiTestCase: Avoid notices about undefined indices
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 13 Aug 2014 17:47:57 +0000 (19:47 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 13 Aug 2014 17:47:57 +0000 (19:47 +0200)
commitb43624d3e0a96fe804e07679155d4f7f54f46459
tree5682df7646074a6328c732072c0309944cbd8717
parent0eed71b7767cad5bb4c53ca45d732934e7b7203b
ApiTestCase: Avoid notices about undefined indices

We're going to throw an exception right away here, but this is still
problematic because of PHPUnit:

"By default, PHPUnit converts PHP errors, warnings, and notices that
are triggered during the execution of a test to an exception."
http://phpunit.de/manual/4.2/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.errors

Also change the exception message to something saner.

Change-Id: I766c36076d34428035be78bbb3cf36cc572b565b
tests/phpunit/includes/api/ApiTestCase.php