Yaffs site version 1.1
[yaffs-website] / vendor / psy / psysh / test / Psy / Test / Util / StrTest.php
1 <?php
2
3 /*
4  * This file is part of Psy Shell.
5  *
6  * (c) 2012-2017 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 testUnvisProvider
20      */
21     public function testUnvis($input, $expected)
22     {
23         $this->assertEquals($expected, Str::unvis($input));
24     }
25
26     public function testUnvisProvider()
27     {
28         //return require_once(__DIR__.'/../../../fixtures/unvis_fixtures.php');
29         return json_decode(file_get_contents(__DIR__ . '/../../../fixtures/unvis_fixtures.json'));
30     }
31 }