Skip to content

Commit 1670d78

Browse files
committed
fix expected exception messages after changes made in Definition class
1 parent 16bd0fa commit 1670d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/DefinitionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function testGetArgumentShouldCheckBounds()
303303
public function testReplaceArgumentShouldCheckBounds()
304304
{
305305
$this->expectException(\OutOfBoundsException::class);
306-
$this->expectExceptionMessage('The index "1" is not in the range [0, 0].');
306+
$this->expectExceptionMessage('The index "1" is not in the range [0, 0] of the arguments of class "stdClass".');
307307
$def = new Definition('stdClass');
308308

309309
$def->addArgument('foo');
@@ -313,7 +313,7 @@ public function testReplaceArgumentShouldCheckBounds()
313313
public function testReplaceArgumentWithoutExistingArgumentsShouldCheckBounds()
314314
{
315315
$this->expectException(\OutOfBoundsException::class);
316-
$this->expectExceptionMessage('Cannot replace arguments if none have been configured yet.');
316+
$this->expectExceptionMessage('Cannot replace arguments for class "stdClass" if none have been configured yet.');
317317
$def = new Definition('stdClass');
318318
$def->replaceArgument(0, 'bar');
319319
}

0 commit comments

Comments
 (0)