Permalink
Browse files

Use static references in WebTestCase child classes

  • Loading branch information...
1 parent 20bdb4c commit cce1a1cd22d93447053b420cc8f1ed7e870d2def @jmikola jmikola committed Aug 30, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 Tests/AdwordsWebTest.php
  2. +2 −2 Tests/AnalyticsWebTest.php
@@ -16,8 +16,8 @@ class AdwordsWebTest extends WebTestCase
protected function setUp()
{
parent::setUp();
- $this->client = $this->createClient();
- $this->adwords = $this->kernel->getContainer()->get('google.adwords');
+ $this->client = static::createClient();
+ $this->adwords = static::$kernel->getContainer()->get('google.adwords');
}
protected function tearDown()
@@ -17,8 +17,8 @@ class AnalyticsWebTest extends WebTestCase
protected function setUp()
{
parent::setUp();
- $this->client = $this->createClient();
- $this->analytics = $this->kernel->getContainer()->get('google.analytics');
+ $this->client = static:createClient();
+ $this->analytics = static::$kernel->getContainer()->get('google.analytics');
}
protected function tearDown()

0 comments on commit cce1a1c

Please sign in to comment.