mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Fix wording & co
This commit is contained in:
parent
a5c2c6c07e
commit
51447074c2
3 changed files with 15 additions and 15 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue