public function testPathGetter() { $path = '/path/to/file'; $tw = new TemplateWriter($path, new FS()); $this->assertEquals($path, $tw->getPath()); $path = '/path/to/file/'; $tw = new TemplateWriter($path, new FS()); $this->assertEquals('/path/to/file', $tw->getPath()); }