for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Knp\RadBundle\Twig;
use PhpSpec\ObjectBehavior;
class FlashesNodeFactorySpec extends ObjectBehavior
{
/**
* @param Twig_Node_Expression $types
$types
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(...).
$italy
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.
* @param Twig_Node_Expression $catalog
$catalog
* @param Twig_NodeInterface $body
$body
*/
function let()
}
function it_should_create_flashes_node_instances($types, $catalog, $body)
$this->createFlashesNode($types, $catalog, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
function it_should_allow_to_create_flashes_node_with_no_types($catalog, $body)
$this->createFlashesNode(null, $catalog, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
function it_should_allow_to_create_flashes_node_with_no_catalog($types, $body)
$this->createFlashesNode($types, null, $body, 123)->shouldBeAnInstanceOf('Knp\RadBundle\Twig\FlashesNode');
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.