Ejemplo n.º 1
0
 public function testRandomHtmlReturnsValidHTMLString()
 {
     $faker = new Generator();
     $faker->addProvider(new HtmlLorem($faker));
     $node = $faker->randomHtml(6, 10);
     $dom = new \DOMDocument();
     $error = $dom->loadHTML($node);
     $this->assertTrue($error);
 }