Code Duplication    Length = 17-17 lines in 2 locations

tests/unit/Arguments/ArgumentFactory/ArgumentFactoryAggregateTest.php 2 locations

@@ 73-89 (lines=17) @@
70
     * @test
71
     * @dataProvider dataProviderForShouldKnowWhenToUnderstandString
72
     */
73
    public function shouldKnowWhenToUnderstandString(bool $expectedResult, string $source, bool $a, bool $b, bool $c)
74
    {
75
        $this->innerArgumentFactoryA->expects($this->any())->method('understandsString')->with(
76
            $this->equalTo($source)
77
        )->willReturn($a);
78
        $this->innerArgumentFactoryB->expects($this->any())->method('understandsString')->with(
79
            $this->equalTo($source)
80
        )->willReturn($b);
81
        $this->innerArgumentFactoryC->expects($this->any())->method('understandsString')->with(
82
            $this->equalTo($source)
83
        )->willReturn($c);
84
85
        /** @var bool $actualResult */
86
        $actualResult = $this->factoryAggregate->understandsString($source);
87
88
        $this->assertEquals($expectedResult, $actualResult);
89
    }
90
91
    public function dataProviderForShouldKnowWhenToUnderstandString()
92
    {
@@ 105-121 (lines=17) @@
102
     * @test
103
     * @dataProvider dataProviderForShouldKnowWhenToUnderstandArray
104
     */
105
    public function shouldKnowWhenToUnderstandArray(bool $expectedResult, array $source, bool $a, bool $b, bool $c)
106
    {
107
        $this->innerArgumentFactoryA->expects($this->any())->method('understandsArray')->with(
108
            $this->equalTo($source)
109
        )->willReturn($a);
110
        $this->innerArgumentFactoryB->expects($this->any())->method('understandsArray')->with(
111
            $this->equalTo($source)
112
        )->willReturn($b);
113
        $this->innerArgumentFactoryC->expects($this->any())->method('understandsArray')->with(
114
            $this->equalTo($source)
115
        )->willReturn($c);
116
117
        /** @var bool $actualResult */
118
        $actualResult = $this->factoryAggregate->understandsArray($source);
119
120
        $this->assertEquals($expectedResult, $actualResult);
121
    }
122
123
    public function dataProviderForShouldKnowWhenToUnderstandArray()
124
    {