public function testWrongContent()
{
$filename = 'addon/testaddon1/static/hooks.config.php';
- $wrongContent = "<php return 'wrong';";
+ $wrongContent = "<?php return 'wrong';";
vfsStream::create($this->structure)->at($this->root);
public function testNoHooksConfig()
{
$filename = 'addon/testaddon1/static/hooks.config.php';
- $wrongContent = "<php return 'wrong';";
+ $wrongContent = "<?php return 'wrong';";
vfsStream::create($this->structure)->at($this->root);
$hookFileManager = new StrategiesFileManager($this->root->url(), $addonLoader);
vfsStream::newFile(StrategiesFileManager::STATIC_DIR . '/' . StrategiesFileManager::CONFIG_NAME . '.config.php')
- ->withContent("<php return 'WRONG_CONTENT';")
+ ->withContent("<?php return 'WRONG_CONTENT';")
->at($this->root);
self::expectException(HookConfigException::class);