Browse Source

Merge pull request #1781 from neoascetic/1690_fix_for_php53

Syntax fix for PHP 5.3 (#1690)
Taylor Otwell 11 years ago
parent
commit
1bd93c3327
1 changed files with 3 additions and 3 deletions
  1. 3 3
      laravel/tests/cases/ioc.test.php

+ 3 - 3
laravel/tests/cases/ioc.test.php

@@ -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,8 +146,8 @@ 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);
 	}
 
-}
+}