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');
52
-
$this->assertTrue($builder->setDefinition('foobar', $foo = newDefinition('FooBarClass')) ===$foo, '->setDefinition() implements a fluid interface by returning the service reference');
52
+
$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');
258
258
$this->assertEquals('FooClass', $services['foo']->getClass(), '->load() parses the class attribute');
@@ -268,10 +268,10 @@ public function testLoadServices()
268
268
$this->assertEquals(array('BazClass', 'getInstance'), $services['new_factory3']->getFactory(), '->load() parses the factory tag');
$this->assertTrue(isset($services['foo']), '->load() parses service elements');
148
+
$this->assertArrayHasKey('foo', $services, '->load() parses service elements');
149
149
$this->assertFalse($services['not_shared']->isShared(), '->load() parses the shared flag');
150
150
$this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Definition', $services['foo'], '->load() converts service element to Definition instances');
151
151
$this->assertEquals('FooClass', $services['foo']->getClass(), '->load() parses the class attribute');
@@ -161,10 +161,10 @@ public function testLoadServices()
161
161
$this->assertEquals(array('BazClass', 'getInstance'), $services['new_factory3']->getFactory(), '->load() parses the factory tag');
0 commit comments