Пример #1
0
 /**
  * write() should return string if $format is valid
  */
 public function test_write_returnsString_ifFormatIsValid()
 {
     $string = '\\cxds ing';
     $snippet = new Snippet();
     $snippet->read($string);
     return $this->assertEquals($string, $snippet->write());
 }
Пример #2
0
 public function read()
 {
     $this->file = DIAMONDMVC_ROOT . '/templates/' . $this->name . '/index.php';
     return parent::read();
 }