Completed
Push — master ( c5bd76...a04aa9 )
by Ivannis Suárez
04:38
created

SelectorTestCase::testCustom()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 10
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