Skip to content

Commit

Permalink
Issue #644: Add the test case when ucwords has a delimiter parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 19, 2019
1 parent d521d45 commit 74321a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/Mutator/Unwrap/UnwrapUcWordsTest.php
Expand Up @@ -188,5 +188,20 @@ function ucwords($string)
PHP
,
];

yield 'It does not break when ucwords uses a delimiter parameter' => [
<<<'PHP'
<?php
$a = ucwords('good|afternoon|world', '|');
PHP
,
<<<'PHP'
<?php
$a = 'good|afternoon|world';
PHP

];
}
}

0 comments on commit 74321a1

Please sign in to comment.