FlashesNodeFactorySpec::let()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace spec\Knp\RadBundle\Twig;
4
5
use PhpSpec\ObjectBehavior;
6
7
class FlashesNodeFactorySpec extends ObjectBehavior
8
{
9
    /**
10
     * @param  Twig_Node_Expression $types
0 ignored issues
show
Bug introduced by
There is no parameter named $types. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
11
     * @param  Twig_Node_Expression $catalog
0 ignored issues
show
Bug introduced by
There is no parameter named $catalog. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
12
     * @param  Twig_NodeInterface   $body
0 ignored issues
show
Bug introduced by
There is no parameter named $body. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
13
     */
14
    function let()
15
    {
16
    }
17
18
    function it_should_create_flashes_node_instances($types, $catalog, $body)
0 ignored issues
show
Coding Style introduced by
Method name "FlashesNodeFactorySpec::it_should_create_flashes_node_instances" is not in camel caps format
Loading history...
19
    {
20
        $this->createFlashesNode($types, $catalog, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
21
    }
22
23
    function it_should_allow_to_create_flashes_node_with_no_types($catalog, $body)
0 ignored issues
show
Coding Style introduced by
Method name "FlashesNodeFactorySpec::it_should_allow_to_create_flashes_node_with_no_types" is not in camel caps format
Loading history...
24
    {
25
        $this->createFlashesNode(null, $catalog, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
26
    }
27
28
    function it_should_allow_to_create_flashes_node_with_no_catalog($types, $body)
0 ignored issues
show
Coding Style introduced by
Method name "FlashesNodeFactorySpec::it_should_allow_to_create_flashes_node_with_no_catalog" is not in camel caps format
Loading history...
29
    {
30
        $this->createFlashesNode($types, null, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
31
    }
32
}
33