for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Port\Steps\Step;
use Port\Steps\Step;
use PhpSpec\ObjectBehavior;
class ConverterStepSpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType('Port\Steps\Step\ConverterStep');
}
function it_is_a_step()
$this->shouldHaveType('Port\Steps\Step');
function it_processes_an_item(Step $step)
$converter = function($item) {
return $item;
};
$this->beConstructedWith([$converter]);
$next = function() {};
$item = [];
$item2 = ['item2'];
$step->process($item2, $next)->willReturn(true);
$this->add(function($item) use($item2) {
$item
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $item2;
});
$this->process(
process()
spec\Port\Steps\Step\ConverterStepSpec
it_processes_an_item()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
$item,
function($item) use ($step, $next) {
return $step->process($item, $next);
);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.