| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class ControllerNameConverterTest extends TestCase |
||
| 23 | { |
||
| 24 | private $converter; |
||
| 25 | |||
| 26 | private $kernel; |
||
| 27 | |||
| 28 | public function setUp() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @dataProvider convertProvider |
||
| 45 | */ |
||
| 46 | public function testConvert($controller, $expected) |
||
| 47 | { |
||
| 48 | $converted = $this->converter->convert($controller); |
||
| 49 | |||
| 50 | $this->assertEquals($expected, $converted); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function convertProvider() |
||
| 67 | ], |
||
| 68 | ]; |
||
| 71 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.