Completed
Push — master ( 82d1fc...6f9908 )
by Ivannis Suárez
02:50 queued 29s
created

NullVisitorTests   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 3
c 2
b 1
f 0
lcom 0
cbo 2
dl 0
loc 30
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A visitDataProvider() 0 4 1
A visitNextDataProvider() 0 4 1
A canHandlerVisiteeDataProvider() 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\Visitor\Tests\Units;
11
12
use Cubiche\Core\Visitor\Tests\Fixtures\Value;
13
14
/**
15
 * Null Visitor Tests Class.
16
 *
17
 * @author Karel Osorio Ramírez <[email protected]>
18
 */
19
class NullVisitorTests extends LinkedVisitorTestCase
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function visitDataProvider()
25
    {
26
        return array();
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    protected function visitNextDataProvider()
33
    {
34
        return array();
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    protected function canHandlerVisiteeDataProvider()
41
    {
42
        $data = parent::canHandlerVisiteeDataProvider();
43
44
        return \array_merge($data, array(
45
            array($this->newDefaultTestedInstance(), new Value(1), false),
46
        ));
47
    }
48
}
49