Esempio n. 1
0
 /**
  * Tests textArea with displayTo and newline in value
  *
  * @author Nikolaos Dimopoulos <*****@*****.**>
  * @since  2014-10-03
  */
 public function testTextAreaWithDisplayToAndNewlineInValue()
 {
     $this->specify("textArea with displayTo and newline in value", function () {
         $options = 'x_name';
         $value = "\r\nx_content";
         $expected = '<textarea id="x_name" name="x_name">' . $value . '</textarea>';
         Tag::setDefault('x_name', $value);
         $actual = Tag::textArea($options);
         Tag::setDefault('x_name', '');
         expect($actual)->equals($expected);
     });
 }