Beispiel #1
0
 /**
  * Default constructor
  *
  * @param string $file The view
  * @throws FileNotFoundException
  */
 public function __construct($file)
 {
     $this->setFile($file);
     $this->content = $this->file->read();
 }
Beispiel #2
0
 /**
  *
  */
 public function testReadWithLength()
 {
     $this->_file->write('great test string');
     $this->assertEquals('great test', $this->_file->read(10));
     $this->_file->emptyFile();
 }