SelectorTestCase::testSelect()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Selector\Tests\Units;
11
12
use Cubiche\Core\Selector\SelectorInterface;
13
14
/**
15
 * Selector Test Case Class.
16
 *
17
 * @author Karel Osorio Ramírez <[email protected]>
18
 */
19
abstract class SelectorTestCase extends SelectorInterfaceTestCase
20
{
21
    /**
22
     * Test select.
23
     */
24
    public function testSelect()
25
    {
26
        $this
27
            /* @var \Cubiche\Core\Selector\Selector $selector */
28
            ->given($selector = $this->newDefaultTestedInstance())
29
            ->then()
30
            ->when($selected = $selector->select($this->newDefaultTestedInstance()))
31
                ->object($selected)
32
                    ->isInstanceOf(SelectorInterface::class)
33
        ;
34
    }
35
}
36