public function testFullPageMarkup() { $fixer = new Fixer(array(new Fixer\EnglishQuotes())); $this->assertInstanceOf('JoliTypo\\Fixer', $fixer); $html = <<<HTML <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Coucou</title> </head> <body> "Who Let the Dogs Out?" is a song written and originally recorded by Anslem Douglas (titled "Doggie"). </body> </html> HTML; $fixed = <<<STRING “Who Let the Dogs Out?” is a song written and originally recorded by Anslem Douglas (titled “Doggie”). STRING; $this->assertEquals($fixed, $fixer->fix($html)); }