Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F2125759
SmartyPluginTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
555 B
Subscribers
None
SmartyPluginTestCase.php
View Options
<?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
Details
Attached
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)
Attached To
rZED Zed
Event Timeline
Log In to Comment