-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3375 Fix PHP 7.2 compatibility, add test for legacy controller (…
…IonBazan) This PR was merged into the 3.0.x-dev branch. Discussion ---------- Fix PHP 7.2 compatibility, add test for legacy controller This change fixes PHP 7.2 compatibility (using NowDoc) and adds test to assure it will not break in future. It also adjusts PHP-CS-Fixer config to avoid this issue again. Additional changes include coverage config and code style fixes. Replaces #3367 Commits ------- 6a60cdf Fix PHP 7.2 compatibility, add test for legacy controller
- Loading branch information
Showing
11 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.php_cs.cache | ||
composer.lock | ||
.phpunit.result.cache | ||
/phpunit.xml | ||
vendor/* | ||
build/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace EasyCorp\Bundle\EasyAdminBundle\Tests\Controller; | ||
|
||
use EasyCorp\Bundle\EasyAdminBundle\Controller\EasyAdminController; | ||
use PHPUnit\Framework\TestCase; | ||
use RuntimeException; | ||
|
||
class EasyAdminControllerTest extends TestCase | ||
{ | ||
public function testCall() | ||
{ | ||
$controller = new EasyAdminController(); | ||
$this->expectException(RuntimeException::class); | ||
$this->expectExceptionMessage('If you are seeing this error, you are probably upgrading your application'); | ||
$controller->index(); | ||
} | ||
} |