Commit 1bd93c33 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1781 from neoascetic/1690_fix_for_php53

Syntax fix for PHP 5.3 (#1690)
parents 2e8b5575 a0c2adec
......@@ -134,7 +134,7 @@ class IoCTest extends PHPUnit_Framework_TestCase {
public function testClassTwoResolvesClassOneDependency()
{
$test = IoC::resolve('TestClassTwoForIoC');
$this->assertInstanceOf('TestClassOneForIoC', $test->TestClassOneForIoC);
$this->assertInstanceOf('TestClassOneForIoC', $test->class_one);
}
/**
......@@ -146,7 +146,7 @@ class IoCTest extends PHPUnit_Framework_TestCase {
$class_one = IoC::resolve('TestClassOneForIoC');
$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);
}
......
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