comparison vendor/psy/psysh/test/Psy/Test/Util/StrTest.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 7a779792577d
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }