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