8000 [DependencyInjection] Env parameterbag fix: use the correct exception class. by paradajozsef · Pull Request #19994 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Env parameterbag fix: use the correct exception class. #19994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[DependencyInjection] Change unit test method name.
  • Loading branch information
paradajozsef committed Sep 20, 2016
commit 2d1662775b618549bbe4a46de70e222c44235734
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EnvPlaceholderParameterBagTest extends \PHPUnit_Framework_TestCase
/**
* @expectedException InvalidArgumentException
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference: this needs to be a full class namespace, as PHPUnit doesn't "look" at the use statements (already fixed by Nicolas).

*/
public function testGetThrowsExceptionWithIfEnvNameContainsNonWordCharacters()
public function testGetThrowsInvalidArgumentExceptionIfEnvNameContainsNonWordCharacters()
{
$bag = new EnvPlaceholderParameterBag();
$bag->get('env(%foo%)');
Expand Down
0