1
0
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:
Brown 2019-06-13 11:32:45 -04:00
parent e3c9dbf2c0
commit 4adebec80f

View File

@ -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],
],
];
}
}