Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 167c14f

Browse files
minor #19998 [DI] Fix expectedException annotation (nicolas-grekas)
This PR was merged into the 3.2-dev branch. Discussion ---------- [DI] Fix expectedException annotation | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19994 | License | MIT | Doc PR | - @paradajozsef FYI, phpunit (at least v4.8 we have to use for PHP 5.5 compat) doesn't resolve use statements in `expectedException` annotations. Thanks for the fix btw. Commits ------- 663bd74 [DI] Fix expectedException annotation
2 parents fba0638 + 663bd74 commit 167c14f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/DependencyInjection/Tests/ParameterBag/EnvPlaceholderParameterBagTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests\ParameterBag;
1313

14-
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1514
use Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag;
1615

1716
class EnvPlaceholderParameterBagTest extends \PHPUnit_Framework_TestCase
1817
{
1918
/**
20-
* @expectedException InvalidArgumentException
19+
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
2120
*/
2221
public function testGetThrowsInvalidArgumentExceptionIfEnvNameContainsNonWordCharacters()
2322
{

0 commit comments

Comments
 (0)