我正试图在我的服务器上设置phpunit。这就是我迄今所做的..。
cd /path/towget http://pear.phpunit.de/get/phpunit.pharchmod +x phpunit.phar/path/to/phpunit.phar我收到的错误是..。
PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /path/to/phpunit.phar on line 6
phpunit.phar文件的前8行是.
#!/usr/bin/env php
<?php
define('__PHPUNIT_PHAR__', realpath($GLOBALS['_SERVER']['SCRIPT_NAME']));
spl_autoload_register(
function ($class)
{
static $classes = NULL;知道我做错什么了吗?
发布于 2013-03-15 14:25:54
您需要至少PHP 5.3.3来使用PHPUnit的phar版本:
注意:PHP3.7需要PHP5.3.3(或更高版本),但强烈建议使用PHPUnit 5.4.7 (或更高版本)。
https://stackoverflow.com/questions/15416084
复制相似问题