本文整理汇总了PHP中Phing::start方法的典型用法代码示例。如果您正苦于以下问题:PHP Phing::start方法的具体用法?PHP Phing::start怎么用?PHP Phing::start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phing
的用法示例。
在下文中一共展示了Phing::start方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildProject
/**
* Calls Phing's methods to generate propel's objects
*
* @param string $libraries_path
* @param array $arguments
*/
public static function buildProject($libraries_path, array &$arguments)
{
require_once 'phing/Phing.php';
Phing::startup();
Phing::setProperty('phing.home', $libraries_path . 'phing');
Phing::start($arguments);
}
示例2: testPhingInstallation
public function testPhingInstallation()
{
$tmpDir = sys_get_temp_dir();
WadeLib::installPhingManually($tmpDir, $tmpDir . '/phing');
# Start Phing with a test-buildfile
$phingDir = $tmpDir . '/phing';
$phingInclude = $phingDir . '/classes/';
ini_set('include_path', $phingInclude);
require $phingInclude . 'phing/Phing.php';
Phing::startup();
# Sets up the phing environment
Phing::start(array('-buildfile', 'tests/build.xml'));
# Check results of test-buildfile
$resultFile = __DIR__ . '/wadelib_testbuild';
$this->assertEquals(PHP_OS, file_get_contents($resultFile));
# Delete local files:
unlink($resultFile);
# Remove extracted Phing library:
FileSystemManager::rrmdir($phingDir);
}