本文整理汇总了PHP中Requirements::set_suffix_requirements方法的典型用法代码示例。如果您正苦于以下问题:PHP Requirements::set_suffix_requirements方法的具体用法?PHP Requirements::set_suffix_requirements怎么用?PHP Requirements::set_suffix_requirements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Requirements
的用法示例。
在下文中一共展示了Requirements::set_suffix_requirements方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testRequireCallInTemplateInclude
public function testRequireCallInTemplateInclude()
{
$template = new SSViewer(array('SSViewerTestProcess'));
Requirements::set_suffix_requirements(false);
$this->assertEquals(1, substr_count($template->process(array()), "tests/forms/RequirementsTest_a.js"));
}
示例2: testRequireCallInTemplateInclude
public function testRequireCallInTemplateInclude()
{
//TODO undo skip test on the event that templates ever obtain the ability to reference MODULE_DIR (or something to that effect)
if (FRAMEWORK_DIR === 'framework') {
$template = new SSViewer(array('SSViewerTestProcess'));
Requirements::set_suffix_requirements(false);
$this->assertEquals(1, substr_count($template->process(array()), "tests/forms/RequirementsTest_a.js"));
} else {
$this->markTestSkipped('Requirement will always fail if the framework dir is not ' . 'named \'framework\', since templates require hard coded paths');
}
}