Example #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 () {
         PhTTag::resetInput();
         $options = 'This is a Test';
         $expected = 't_s_s_a_test';
         $actual = PhTTag::friendlyTitle($options, '_', true, true);
         expect($actual)->equals($expected);
     }, ['throws' => new PhTagException()]);
 }