Code Duplication    Length = 15-16 lines in 2 locations

eZ/Publish/Core/MVC/Symfony/View/Tests/VariableProviderRegistryTest.php 2 locations

@@ 50-64 (lines=15) @@
47
        };
48
    }
49
50
    public function testParameterProviderGetter(): void
51
    {
52
        $registry = $this->getRegistry([
53
            $this->getProvider('provider_a'),
54
            $this->getProvider('provider_b'),
55
        ]);
56
57
        $providerA = $registry->getTwigVariableProvider('provider_a');
58
        $providerB = $registry->getTwigVariableProvider('provider_b');
59
        $providerC = $registry->getTwigVariableProvider('provider_c');
60
61
        $this->assertEquals($providerA->getIdentifier(), 'provider_a');
62
        $this->assertEquals($providerB->getIdentifier(), 'provider_b');
63
        $this->assertNull($providerC);
64
    }
65
66
    public function testParameterProviderSetter(): void
67
    {
@@ 66-81 (lines=16) @@
63
        $this->assertNull($providerC);
64
    }
65
66
    public function testParameterProviderSetter(): void
67
    {
68
        $registry = $this->getRegistry([
69
            $this->getProvider('provider_a'),
70
            $this->getProvider('provider_b'),
71
        ]);
72
73
        $providerC = $registry->getTwigVariableProvider('provider_c');
74
75
        $this->assertNull($providerC);
76
77
        $registry->setTwigVariableProvider($this->getProvider('provider_c'));
78
79
        $providerC = $registry->getTwigVariableProvider('provider_c');
80
        $this->assertEquals($providerC->getIdentifier(), 'provider_c');
81
    }
82
83
    public function testParameterProviderChecker(): void
84
    {