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