This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
34
LinkedVisitor $visitor,
35
LinkedVisitor $next,
36
VisiteeInterface $visitee,
37
$visitorMethod,
38
$expected
39
) {
40
$this
41
->given($visitor, $visitee)
42
->when($result = $visitor->visit($visitee))
43
->then()
44
->mock($next)
45
->call($visitorMethod)
46
->withArguments($visitee)
47
->once()
48
->variable($result)
49
->isEqualTo($expected)
50
;
51
}
52
53
/**
54
* @return array
55
*/
56
abstract protected function visitNextDataProvider();
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.