mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add test for default correction
This commit is contained in:
parent
e3c9dbf2c0
commit
4adebec80f
@ -349,6 +349,25 @@ class ErrorFixTest extends \Psalm\Tests\TestCase
|
||||
],
|
||||
'error_counts' => [2, 1, 0],
|
||||
],
|
||||
'fixDefault' => [
|
||||
'files' => [
|
||||
[
|
||||
getcwd() . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'A.php' => '<?php
|
||||
class C {
|
||||
/** @var string */
|
||||
public $foo = 5;
|
||||
}',
|
||||
],
|
||||
[
|
||||
getcwd() . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'A.php' => '<?php
|
||||
class C {
|
||||
/** @var string */
|
||||
public $foo = "hello";
|
||||
}',
|
||||
],
|
||||
],
|
||||
'error_counts' => [1, 0],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user