/**
  * Tests the text::widont() function.
  * @dataProvider widont_provider
  * @group core.helpers.text.widont
  * @test
  */
 public function widont($str, $expected_result)
 {
     $result = text::widont($str);
     $this->assertEquals($expected_result, $result);
 }
示例#2
0
 public function __render_page()
 {
     $this->__binds();
     $this->template->bind("page", $this->page);
     $this->header->bind("page", $this->page);
     $this->footer->bind("page", $this->page);
     zest::add_stat('page', $this->page->id);
     $this->seoTitle = $this->page->seoTitle;
     $this->title = $this->page->title;
     $this->content = text::widont($this->page->bodyText);
     $this->__set_options(array("extraCSS" => $this->page->extraCSS, "extraJS" => $this->page->extraJS));
 }