Page MenuHomeCode

SmartyPluginTestCase.php
No OneTemporary

SmartyPluginTestCase.php

<?php
declare(strict_types=1);
namespace Zed\Tests\Engines\Templates\Smarty\Plugins;
use PHPUnit\Framework\TestCase;
abstract class SmartyPluginTestCase extends TestCase {
protected function requirePlugin (string $type, string $name) : void {
require_once($this->getPluginPath($type, $name));
}
private function getPluginPath (string $type, string $name) : string {
return dirname(__DIR__, 6) // application root directory
. '/Engines/Templates/Smarty/Plugins/'
. "$type.$name.php";
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Sep 18, 18:50 (23 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21375
Default Alt Text
SmartyPluginTestCase.php (555 B)

Event Timeline