Skip to content

Commit 81fa509

Browse files
authored
Merge pull request #14 from elbformat/di-fixes
Fix DI config
2 parents 6f5ea36 + 3da0aed commit 81fa509

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/Helper/ArrayDeepCompare.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ class ArrayDeepCompare
2121
*/
2222
public function arrayEquals($a, $b): bool
2323
{
24+
$this->difference = null;
2425
return !$this->hasDiff($a, $b);
2526
}
2627

2728
public function arrayContains(array $container, array $containment): bool
2829
{
30+
$this->difference = null;
2931
return !$this->hasDiff($containment, $container, '', false);
3032
}
3133

src/Resources/config/services.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
services:
2-
Elbformat\SymfonyBehatBundle\Browser\StateFactory: ~
32
Elbformat\SymfonyBehatBundle\Application\ApplicationFactory:
43
arguments:
54
$kernel: '@kernel'
5+
Elbformat\SymfonyBehatBundle\Browser\StateFactory: ~
6+
Elbformat\SymfonyBehatBundle\Helper\ArrayDeepCompare: ~
7+
Elbformat\SymfonyBehatBundle\Helper\StringCompare: ~

tests/DependencyInjection/ElbformatSymfonyBehatExtensionTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ public function testLoad(): void
1818
$ext = new ElbformatSymfonyBehatExtension();
1919
$containerBuilder = $this->createMock(ContainerBuilder::class);
2020

21-
$containerBuilder->expects($this->exactly(7))
21+
$containerBuilder->expects($this->exactly(9))
2222
->method('setDefinition')
2323
->withConsecutive(
24+
[],
25+
[],
2426
[],
2527
[],
2628
[BrowserContext::class,$this->callback(function (Definition $def) {

0 commit comments

Comments
 (0)