8000 Deprecate the special SYMFONY__ environment variables by javiereguiluz · Pull Request #21889 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Deprecate the special SYMFONY__ environment variables #21889

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
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Don't use deprecated features in tests
  • Loading branch information
javiereguiluz committed Mar 20, 2017
commit 247d17e1772c04eafa20d21c1ed6a52a283356b5
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class CachePoolsTest extends WebTestCase
{
protected function setUp()
{
$_SERVER['SYMFONY__REDIS_HOST'] = getenv('REDIS_HOST');
$_SERVER['REDIS_HOST'] = getenv('REDIS_HOST');
}
Copy link
Member

Choose a reason for hiding this comment

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

seems unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't sure. Can I remove both setUp() and tearDown() ?

Copy link
Member

Choose a reason for hiding this comment

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

I would say yes


protected function tearDown()
{
unset($_SERVER['SYMFONY__REDIS_HOST']);
unset($_SERVER['REDIS_HOST']);
}

public function testCachePools()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ imports:
framework:
cache:
app: cache.adapter.redis
default_redis_provider: "redis://%redis_host%"
default_redis_provider: "redis://%env(REDIS_HOST)%"
pools:
cache.pool1:
public: true
Expand Down
0