1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Fix wording & co

This commit is contained in:
Jordi Boggiano 2012-03-18 21:16:36 +01:00
parent a5c2c6c07e
commit 51447074c2
3 changed files with 15 additions and 15 deletions

View file

@ -27,9 +27,9 @@ class ErrorHandlerTest extends TestCase
*/
public function testErrorHandlerCaptureNotice()
{
$this->setExpectedException('\ErrorException', 'Undefined index: baz in ' . __FILE__);
$this->setExpectedException('\ErrorException', 'Undefined index: baz');
ErrorHandler::set();
ErrorHandler::register();
$array = array('foo' => 'bar');
$array['baz'];
@ -40,9 +40,9 @@ class ErrorHandlerTest extends TestCase
*/
public function testErrorHandlerCaptureWarning()
{
$this->setExpectedException('\ErrorException', 'array_merge(): Argument #2 is not an array in ' . __FILE__);
$this->setExpectedException('\ErrorException', 'array_merge(): Argument #2 is not an array');
ErrorHandler::set();
ErrorHandler::register();
array_merge(array(), 'string');
}