mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Merge pull request #463 from rectorphp/default-kernel-class
Add Default kernel class
This commit is contained in:
commit
4a20730c9c
@ -1,3 +1,7 @@
|
||||
parameters:
|
||||
# default Symfony Kernel class
|
||||
kernel_class: 'App\Kernel'
|
||||
|
||||
imports:
|
||||
- { resource: '../../packages/**/src/config/*services.yml' }
|
||||
- { resource: 'services.yml' }
|
||||
|
@ -13,7 +13,10 @@ final class InvalidConfigurationConstructorInjectionRectorTest extends AbstractR
|
||||
public function test(): void
|
||||
{
|
||||
$this->expectException(InvalidConfigurationException::class);
|
||||
$this->expectExceptionMessage('Make sure "kernel_class" parameters is set in rector.yml in "parameters:');
|
||||
$this->expectExceptionMessage(
|
||||
'Kernel class "App\Kernel" provided in "parameters > kernel_class" is not autoloadable.'
|
||||
. ' Make sure composer.json of your application is valid and rector is loading "vendor/autoload.php" of your application.'
|
||||
);
|
||||
|
||||
$this->doTestFileMatchesExpectedContent(__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user