/** * 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()); }
public function read() { $this->file = DIAMONDMVC_ROOT . '/templates/' . $this->name . '/index.php'; return parent::read(); }