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