Skip to content

Commit e91bf2b

Browse files
committed
[SCA] Minor fixes on tests
1 parent 2b38ce2 commit e91bf2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/ContainerBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,12 @@ public function testfindTaggedServiceIds()
846846
->addTag('bar', ['bar' => 'bar'])
847847
->addTag('foo', ['foofoo' => 'foofoo'])
848848
;
849-
$this->assertEquals($builder->findTaggedServiceIds('foo'), [
849+
$this->assertEquals([
850850
'foo' => [
851851
['foo' => 'foo'],
852852
['foofoo' => 'foofoo'],
853853
],
854-
], '->findTaggedServiceIds() returns an array of service ids and its tag attributes');
854+
], $builder->findTaggedServiceIds('foo'), '->findTaggedServiceIds() returns an array of service ids and its tag attributes');
855855
$this->assertEquals([], $builder->findTaggedServiceIds('foobar'), '->findTaggedServiceIds() returns an empty array if there is annotated services');
856856
}
857857

Tests/DefinitionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ public function testTags()
224224
$def->addTag('foo', ['foo' => 'bar']);
225225
$this->assertEquals([[], ['foo' => 'bar']], $def->getTag('foo'), '->addTag() can adds the same tag several times');
226226
$def->addTag('bar', ['bar' => 'bar']);
227-
$this->assertEquals($def->getTags(), [
227+
$this->assertEquals([
228228
'foo' => [[], ['foo' => 'bar']],
229229
'bar' => [['bar' => 'bar']],
230-
], '->getTags() returns all tags');
230+
], $def->getTags(), '->getTags() returns all tags');
231231
}
232232

233233
public function testSetArgument()

0 commit comments

Comments
 (0)