Skip to content

Commit

Permalink
Added additional unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zf2timo committed Nov 7, 2018
1 parent 2dca708 commit bfc1c35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Mutator/Unwrap/UnwrapStrToUpperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,15 @@ function strtoupper($text)
$a = array_map('strtoupper', 'infection');
PHP
];

yield 'It does not break when provided with a variable function name' => [
<<<'PHP'
<?php
$a = 'strtoupper';
$b = $a('infection');
PHP
,
];
}
}

0 comments on commit bfc1c35

Please sign in to comment.