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
$this->assertEquals($foo, $builder->getDefinition('foobar'), '->getDefinition() returns a service definition if defined');
75
-
$this->assertTrue($builder->setDefinition('foobar', $foo = newDefinition('FooBarClass')) ===$foo, '->setDefinition() implements a fluid interface by returning the service reference');
75
+
$this->assertSame($builder->setDefinition('foobar', $foo = newDefinition('FooBarClass')),$foo, '->setDefinition() implements a fluid interface by returning the service reference');
$this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Definition', $services['foo'], '->load() converts <service> element to Definition instances');
242
242
$this->assertEquals('FooClass', $services['foo']->getClass(), '->load() parses the class attribute');
@@ -253,10 +253,10 @@ public function testLoadServices()
253
253
$this->assertSame(array(null, 'getInstance'), $services['new_factory4']->getFactory(), '->load() accepts factory tag without class');
$this->assertTrue(isset($services['foo']), '->load() parses service elements');
142
+
$this->assertArrayHasKey('foo', $services, '->load() parses service elements');
143
143
$this->assertFalse($services['not_shared']->isShared(), '->load() parses the shared flag');
144
144
$this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Definition', $services['foo'], '->load() converts service element to Definition instances');
145
145
$this->assertEquals('FooClass', $services['foo']->getClass(), '->load() parses the class attribute');
@@ -157,10 +157,10 @@ public function testLoadServices()
157
157
$this->assertEquals(array('foo', newReference('baz')), $services['Acme\WithShortCutArgs']->getArguments(), '->load() parses short service definition');
0 commit comments