Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/test/Psy/Test/Util/StrTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
14 use Psy\Util\Str; | 14 use Psy\Util\Str; |
15 | 15 |
16 class StrTest extends \PHPUnit\Framework\TestCase | 16 class StrTest extends \PHPUnit\Framework\TestCase |
17 { | 17 { |
18 /** | 18 /** |
19 * @dataProvider testUnvisProvider | 19 * @dataProvider unvisProvider |
20 */ | 20 */ |
21 public function testUnvis($input, $expected) | 21 public function testUnvis($input, $expected) |
22 { | 22 { |
23 $this->assertEquals($expected, Str::unvis($input)); | 23 $this->assertEquals($expected, Str::unvis($input)); |
24 } | 24 } |
25 | 25 |
26 public function testUnvisProvider() | 26 public function unvisProvider() |
27 { | 27 { |
28 //return require_once(__DIR__.'/../../../fixtures/unvis_fixtures.php'); | 28 //return require_once(__DIR__.'/../../../fixtures/unvis_fixtures.php'); |
29 return json_decode(file_get_contents(__DIR__ . '/../../../fixtures/unvis_fixtures.json')); | 29 return json_decode(file_get_contents(__DIR__ . '/../../../fixtures/unvis_fixtures.json')); |
30 } | 30 } |
31 } | 31 } |