$this->assertEquals('This is a photo post with an img tag inside the content.',$data->data->content->text);
$this->assertEquals('This is a photo post with an <code>img</code> tag inside the content.',$data->data->content->html);
$this->assertEquals('This is a photo post with an <code>img</code> tag inside the content.',$data->data->content->html);
}
publicfunctiontestPhotoInContentWithNoText(){
@ -274,7 +275,7 @@ class SanitizeTest extends PHPUnit_Framework_TestCase {
#print_r($data->data);
$this->assertEquals('🌆 Made it to the first #NPSF #earlygang of the year, did in-betweeners abs, and 6:30 workout with a brutal burnout that was really its own workout. But wow pretty sunrise. Plus 50+ deg F? I’ll take it. #100PDPD#justshowup #darknesstodawn #wakeupthesun #fromwhereirun #NovemberProject #sunrise #latergram #nofilter',$data->data->content->text);
$this->assertEquals('🌆 Made it to the first #NPSF #earlygang of the year, did in-betweeners abs, and 6:30 workout with a brutal burnout that was really its own workout. But wow pretty sunrise. Plus 50+ deg F? I’ll take it. #100PDPD'."\n\n".'#justshowup #darknesstodawn #wakeupthesun #fromwhereirun #NovemberProject #sunrise #latergram #nofilter',$data->data->content->text);
$this->assertEquals('This content has two break tags to indicate a paragraph break.<br /><br />This is how tantek\'s autolinker works.',$data->data->content->html);
$this->assertEquals("This content has two break tags to indicate a paragraph break.\n\nThis is how tantek's autolinker works.",$data->data->content->text);