StrTest.php 722 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2017 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 \PHPUnit_Framework_TestCase
  13. {
  14. /**
  15. * @dataProvider testUnvisProvider
  16. */
  17. public function testUnvis($input, $expected)
  18. {
  19. $this->assertEquals($expected, Str::unvis($input));
  20. }
  21. public function testUnvisProvider()
  22. {
  23. //return require_once(__DIR__.'/../../../fixtures/unvis_fixtures.php');
  24. return json_decode(file_get_contents(__DIR__ . '/../../../fixtures/unvis_fixtures.json'));
  25. }
  26. }