StrTest.php 617 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2023 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Psy\Test\Util;
  11. use Psy\Util\Str;
  12. class StrTest extends \Psy\Test\TestCase
  13. {
  14. /**
  15. * @dataProvider unvisProvider
  16. */
  17. public function testUnvis($input, $expected)
  18. {
  19. $this->assertSame($expected, Str::unvis($input));
  20. }
  21. public function unvisProvider()
  22. {
  23. return \json_decode(\file_get_contents(__DIR__.'/../fixtures/unvis_fixtures.json'));
  24. }
  25. }