【发布时间】:2015-04-06 07:22:03
【问题描述】:
我正在尝试在共享托管服务器(即 GoDaddy)上安装 PHPUnit。在 GoDaddy 提供的 cpanel 中,我可以看到 PHP Pear 扩展,在搜索时只给了我 phpunit1、phpunit2 非常旧的版本,因为我们现在有 phpunit 4.6。
https://phpunit.de/manual/3.7/en/installation.html#installation.phar 这里的文档说要使用
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit
当我 ssh 进入我的共享主机并执行 wget 时,它给了我权限被拒绝。
我想知道 Godaddy 共享主机是否有办法使用 cpanel 让 phpunit4.6。如果没有,我可以简单地在现有框架中下载 phpunit 并开始参考 phpunit 框架来编写我的测试用例吗?
【问题讨论】:
标签: php unit-testing phpunit