You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Symfony/Tests/Component/DependencyInjection/ContainerTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ class ContainerTest extends \PHPUnit_Framework_TestCase
22
22
publicfunctiontestConstructor()
23
23
{
24
24
$sc = newContainer();
25
-
$this->assertEquals(spl_object_hash($sc), spl_object_hash($sc->get('service_container')), '__construct() automatically registers itself as a service');
25
+
$this->assertSame($sc, $sc->get('service_container'), '__construct() automatically registers itself as a service');
$this->assertEquals(array('foo' => 'bar'), $sc->getParameterBag()->all(), '__construct() takes an array of parameters as its first argument');
@@ -140,7 +140,7 @@ public function testGet()
140
140
$this->assertEquals($sc->__foo_baz, $sc->get('foo.baz'), '->get() returns the service if a get*Method() is defined');
141
141
142
142
$sc->set('bar', $bar = new \stdClass());
143
-
$this->assertEquals(spl_object_hash($sc->get('bar')), spl_object_hash($bar), '->getServiceIds() prefers to return a service defined with a getXXXService() method than one defined with set()');
143
+
$this->assertSame($sc->get('bar'), $bar, '->getServiceIds() prefers to return a service defined with a getXXXService() method than one defined with set()');
0 commit comments