/** * Prepare the element and get the static openTo path if needed * * @return void|string */ public function prepareElement() { $this->snippetArray['openTo'] = '/'; if (!empty($this->snippetArray['static'])) { $file = $this->snippet->get('static_file'); $this->snippetArray['openTo'] = dirname($file) . '/'; } return $this->snippetArray['openTo']; }
/** * @param string $content * @dataProvider providerSetContent * @depends testGetContent */ public function testSetContent($content) { $this->snippet->setContent($content); $this->assertEquals($content, $this->snippet->get('snippet')); }