Commit cf901340 authored by Pavel Puchkin's avatar Pavel Puchkin

Syntax fix for PHP 5.3 (#1690)

parent 2e8b5575
...@@ -146,8 +146,8 @@ class IoCTest extends PHPUnit_Framework_TestCase { ...@@ -146,8 +146,8 @@ class IoCTest extends PHPUnit_Framework_TestCase {
$class_one = IoC::resolve('TestClassOneForIoC'); $class_one = IoC::resolve('TestClassOneForIoC');
$class_one->test_variable = 42; $class_one->test_variable = 42;
$class_two = IoC::resolve('TestClassTwoForIoC', [$class_one]); $class_two = IoC::resolve('TestClassTwoForIoC', array($class_one));
$this->assertEquals(42, $class_two->class_one->test_variable); $this->assertEquals(42, $class_two->class_one->test_variable);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment