process() public method

In DIV, LI, TD, and TH elements, Ps are only added when their would be at least two of them.
public process ( string $html ) : string | false
$html string snippet
return string | false output or false if parse error occurred
Beispiel #1
0
 /**
  * @dataProvider provider
  */
 public function testProcess($test, $in, $exp)
 {
     $exp = $this->flattenString($exp);
     $out = $this->_autop->process($in);
     $out = $this->flattenString($out);
     $this->assertEquals($exp, $out, "Equality case {$test}");
 }
 public function testProcess()
 {
     $data = $this->provider();
     foreach ($data as $row) {
         list($test, $in, $exp) = $row;
         $exp = $this->flattenString($exp);
         $out = $this->_autop->process($in);
         $out = $this->flattenString($out);
         $this->assertEqual($exp, $out, "Equality case {$test}");
     }
 }