Code Duplication    Length = 8-10 lines in 2 locations

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

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