/** * @covers Patchwork\Utf8::str_shuffle */ function testStr_shuffle() { $c = "déjà 한국어"; $c .= n::normalize($c, n::NFD); $this->assertTrue($c != ($d = u::str_shuffle($c)) || $c != ($d = u::str_shuffle($c))); $this->assertSame(strlen($c), strlen($d)); $this->assertSame(u::strlen($c), u::strlen($d)); $this->assertSame('', u::trim($d, $c)); }