Esempio n. 1
0
 /**
  * Tests friendlyTitle with string as a parameter with replace as boolean
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-09-11
  */
 public function testFriendlyTitleStringParameterReplaceBoolean()
 {
     $this->specify("friendlyTitle with string parameter with replace array returns incorrect text", function () {
         Tag::resetInput();
         $options = 'This is a Test';
         $expected = 't_s_s_a_test';
         $actual = Tag::friendlyTitle($options, '_', true, true);
         expect($actual)->equals($expected);
     }, ['throws' => ['Phalcon\\Tag\\Exception']]);
 }