Code Duplication    Length = 8-10 lines in 2 locations

tests/Suite/Functional/Indexing/NormalizerTest.php 2 locations

@@ 57-64 (lines=8) @@
54
    /**
55
     * @test
56
     */
57
    public function shouldStripUnknownOption()
58
    {
59
        $option = 'alpha';
60
        $context = (new Context())->setPreserveUnknownOptions(false);
61
        $input = Operations::from($this->dummy)->setOption($option, 'value');
62
        $output = (new Normalizer())->normalize($input, $context);
63
        Assert::assertEquals($this->dummy, $output);
64
    }
65
66
    /**
67
     * @test
@@ 81-90 (lines=10) @@
78
    /**
79
     * @test
80
     */
81
    public function shouldPreserveUnknownOption()
82
    {
83
        $option = 'alpha';
84
        $context = (new Context())
85
            ->setPreserveUnknownOptions(false)
86
            ->setPreservedOptions([$option]);
87
        $input = Operations::from($this->dummy)->setOption($option, 'value');
88
        $output = (new Normalizer())->normalize($input, $context);
89
        Assert::assertEquals($input, $output);
90
    }
91
92
    /**
93
     * @test