Skip to content

Commit 4dbb688

Browse files
committed
removed deprecations for Symfony and Asserts, updates tests for Order
1 parent 0adbebc commit 4dbb688

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@
8686
* browser: phantomjs
8787
* ```
8888
*
89-
* @property-read ContainerInterface $container
90-
*
9189
*/
9290
class Symfony extends Framework implements DoctrineProvider, PartedModule
9391
{
@@ -96,12 +94,6 @@ class Symfony extends Framework implements DoctrineProvider, PartedModule
9694
*/
9795
public $kernel;
9896

99-
/**
100-
* @var ContainerInterface
101-
* @deprecated Use _getContainer() instead
102-
*/
103-
private $container;
104-
10597
public $config = [
10698
'app_path' => 'app',
10799
'var_path' => 'app',
@@ -139,24 +131,6 @@ public function _parts()
139131
*/
140132
protected $persistentServices = [];
141133

142-
public function __get($property)
143-
{
144-
$result = null;
145-
if (property_exists($this, $property)) {
146-
switch ($property) {
147-
case 'container':
148-
$result = $this->_getContainer();
149-
break;
150-
default:
151-
$this->fail(sprintf('Property "%s" can not be accessed.', $property));
152-
break;
153-
}
154-
} else {
155-
$this->fail(sprintf('Property "%s" does not exist.', $property));
156-
}
157-
return $result;
158-
}
159-
160134
public function _initialize()
161135
{
162136
$cache = Configuration::projectDir() . $this->config['var_path'] . DIRECTORY_SEPARATOR . 'bootstrap.php.cache';
@@ -193,7 +167,7 @@ public function _initialize()
193167
public function _before(\Codeception\TestInterface $test)
194168
{
195169
$this->persistentServices = array_merge($this->persistentServices, $this->permanentServices);
196-
$this->client = new Symfony2Connector($this->kernel, $this->persistentServices, $this->config['rebootable_client']);
170+
$this->client = new SymfonyConnector($this->kernel, $this->persistentServices, $this->config['rebootable_client']);
197171
}
198172

199173
/**

0 commit comments

Comments
 (0)