示例#1
0
    function testClear()
    {
        $text = '<h1>Hello Мир!!!     			 фывпфывап asdfsd agjas;dgl
	Как<h1> tak!';
        $trueText = ' Hello Мир!!! фывпфывап asdfsd agjas;dgl Как tak!';
        $this->assertEquals($trueText, DryString::clear($text, ['%<[^>]+>%ims', '%\\s+%']));
    }