Skip to content

Commit 95154b8

Browse files
committed
Fix up testing files.
1 parent 748aa01 commit 95154b8

3 files changed

Lines changed: 2 additions & 45 deletions

File tree

tests/TestCase/Rule/Controller/ControllerMethodMustReturnRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function getRule(): Rule
3232
*/
3333
public function testRule(): void
3434
{
35-
$this->analyse([__DIR__ . '/../../../test_app/Controller/FailingControllerMethodReturnLogic.php'], [
35+
$this->analyse([__DIR__ . '/Fake/FailingControllerMethodReturnLogic.php'], [
3636
[
3737
'Method render() must be returned to prevent unreachable code. Use "return $this->render()" instead.',
3838
17,

tests/test_app/Controller/FailingControllerMethodReturnLogic.php renamed to tests/TestCase/Rule/Controller/Fake/FailingControllerMethodReturnLogic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace App\Controller;
4+
namespace CakeDC\PHPStan\Test\TestCase\Rule\Controller\Fake;
55

66
use Cake\Controller\Controller;
77

tests/data/Rule/addBehaviorRule.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)