コード例 #1
0
ファイル: BaseTest.php プロジェクト: Wookashlab/MainRepo
 public function testBothifyUtf()
 {
     $utf = 'œ∑´®†¥¨ˆøπ“‘和製╯°□°╯︵ ┻━┻🐵 🙈 ﺚﻣ ﻦﻔﺳ ﺲﻘﻄﺗ ﻮﺑﺎﻠﺘﺣﺪﻳﺩ،, ﺝﺰﻳﺮﺘﻳ ﺏﺎﺴﺘﺧﺩﺎﻣ ﺄﻧ ﺪﻧﻭ. ﺇﺫ ﻪﻧﺍ؟ ﺎﻠﺴﺗﺍﺭ ﻮﺘ';
     $this->assertRegExp('/' . $utf . 'foo\\dB[a-z]a([a-z]|\\d)r/u', BaseProvider::bothify($utf . 'foo#B?a*r'));
 }
コード例 #2
0
ファイル: BaseTest.php プロジェクト: nottavi/Faker
 public function testBothifyCombinesNumerifyAndLexify()
 {
     $this->assertRegExp('/foo[a-z]Ba\\dr/', BaseProvider::bothify('foo?Ba#r'));
 }
コード例 #3
0
ファイル: BaseTest.php プロジェクト: ruudk/Faker
 public static function bothify($string)
 {
     return parent::bothify($string);
 }