forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor PHP-CS-Fixer#1420 AlignDoubleArrowFixer, AlignEqualsFixer - add…
… integration tests (keradus) This PR was merged into the 1.11 branch. Discussion ---------- AlignDoubleArrowFixer, AlignEqualsFixer - add integration tests Add tests for PHP-CS-Fixer#1419 Commits ------- 26bffdc AlignDoubleArrowFixer, AlignEqualsFixer - add integration tests
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 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
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
20 changes: 20 additions & 0 deletions
20
Symfony/CS/Tests/Fixtures/Integration/align_double_arrow,operators_spaces.test
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,20 @@ | ||
--TEST-- | ||
Integration of fixers: align_double_arrow,operators_spaces. | ||
--CONFIG-- | ||
level=none | ||
fixers=align_double_arrow,operators_spaces | ||
--INPUT-- | ||
<?php | ||
$array = [ | ||
'€ 1,00 (23,00% IVA incluído)'=> 1, | ||
'€ 3.542,90 (23,00% IVA incluído)'=> 3543, | ||
'€ 4.200,00' => 4200, | ||
]; | ||
|
||
--EXPECT-- | ||
<?php | ||
$array = [ | ||
'€ 1,00 (23,00% IVA incluído)' => 1, | ||
'€ 3.542,90 (23,00% IVA incluído)' => 3543, | ||
'€ 4.200,00' => 4200, | ||
]; |
16 changes: 16 additions & 0 deletions
16
Symfony/CS/Tests/Fixtures/Integration/align_equals,operators_spaces.test
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,16 @@ | ||
--TEST-- | ||
Integration of fixers: align_equals,operators_spaces. | ||
--CONFIG-- | ||
level=none | ||
fixers=align_equals,operators_spaces | ||
--INPUT-- | ||
<?php | ||
$FOO€BARí= 123; | ||
$FOO€BARíBAZ= 123; | ||
$FOO = 123; | ||
|
||
--EXPECT-- | ||
<?php | ||
$FOO€BARí = 123; | ||
$FOO€BARíBAZ = 123; | ||
$FOO = 123; |