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