SelectorTests   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A defaultConstructorArguments() 0 4 1
A evaluateSuccessDataProvider() 0 6 1
A evaluateFailureDataProvider() 0 8 1
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\Specification\Tests\Units;
11
12
use Cubiche\Core\Selector\Key;
13
14
/**
15
 * Selector Tests Class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 * @author Karel Osorio Ramírez <[email protected]>
19
 */
20
class SelectorTests extends SpecificationTestCase
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function defaultConstructorArguments()
26
    {
27
        return array(new Key('foo'));
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function evaluateSuccessDataProvider()
34
    {
35
        return array(
36
            array(array('foo' => true)),
37
        );
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    protected function evaluateFailureDataProvider()
44
    {
45
        return array(
46
            array(array('foo' => false)),
47
            array(array('foo' => null)),
48
            array(array('foo' => 10)),
49
        );
50
    }
51
}
52