Code Duplication    Length = 16-16 lines in 2 locations

Tests/Units/SelectorsTests.php 2 locations

@@ 76-91 (lines=16) @@
73
    /**
74
     * Test addSelector.
75
     */
76
    public function testAddSelector()
77
    {
78
        $this
79
            /* @var \Cubiche\Core\Selector\Selectors $builder */
80
            ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
81
            ->when(function () use ($factory) {
82
                Selectors::setFactory($factory);
83
                Selectors::addSelector('foo', 'bar');
84
            })
85
            ->then()
86
                ->mock($factory)
87
                    ->call('addSelector')
88
                        ->withArguments('foo', 'bar')
89
                        ->once()
90
        ;
91
    }
92
93
    /**
94
     * Test addSelector.
@@ 96-111 (lines=16) @@
93
    /**
94
     * Test addSelector.
95
     */
96
    public function testAddNamespace()
97
    {
98
        $this
99
            /* @var \Cubiche\Core\Selector\Selectors $builder */
100
            ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
101
            ->when(function () use ($factory) {
102
                Selectors::setFactory($factory);
103
                Selectors::addNamespace('foo');
104
            })
105
            ->then()
106
                ->mock($factory)
107
                    ->call('addNamespace')
108
                        ->withArguments('foo')
109
                        ->once()
110
        ;
111
    }
112
113
    /**
114
     * Test apply.