Skip to content

Commit

Permalink
minor #19998 [DI] Fix expectedException annotation (nicolas-grekas)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-grekas committed Sep 21, 2016
2 parents fba0638 + 663bd74 commit 167c14f
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -11,13 +11,12 @@

namespace Symfony\Component\DependencyInjection\Tests\ParameterBag;

use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag;

class EnvPlaceholderParameterBagTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException InvalidArgumentException
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
*/
public function testGetThrowsInvalidArgumentExceptionIfEnvNameContainsNonWordCharacters()
{
Expand Down

0 comments on commit 167c14f

Please sign in to comment.