Example #1
0
 public function testLoadArticle()
 {
     $slim = new \Slim\Slim(array('view' => new \Textpress\View()));
     $textpress = new Textpress($slim, self::config());
     $textpress->init();
     $article = $textpress->loadArticle('2012-02-06-test-article.txt');
     $this->assertInstanceOf('\\Textpress\\Article', $article);
     $this->assertEquals("<p>Test article content</p>\n", $article->getContent());
 }