我在fuelphp單元測試代碼上遇到錯誤。請建議我如何解決。我在Fuelphp中沒有任何解決方案$ phpunit --versionPHPUnit 3.7.21 by Sebastian Bergmann.錯誤在這里$ php oil testTests Running...This may take a few moments.PHP Fatal error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in D:\xampp\htdocs\basic\api\fuel\vendor\phpunit\phpunit\src\TextUI\TestRunner.php on line 1066Fatal error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in D:\xampp\htdocs\basic\api\fuel\vendor\phpunit\phpunit\src\TextUI\TestRunner.php on line 1066Fatal Error - Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in D:/xampp/htdocs/basic/api/fuel/vendor/phpunit/phpunit/src/TextUI/TestRunner.php on line 1066我的測試代碼在這里use Fuel\Core\Cli;use Fuel\Core\Config;/** * @command php oil test --group=Admins * @command for this only >>> php oil test --file=fuel/app/tests/controller/admins.php * @group Admins */class Test_Controller_Admins extends \TestCase { public function test_action_detail() { $this->assertTrue(true); } /** * setUp method * * @return void */ public function setUp() { parent::setUp(); } /** * tearDown method * * @return void */ public function tearDown() { parent::tearDown(); }}
2 回答

MMMHUHU
TA貢獻(xiàn)1834條經(jīng)驗 獲得超8個贊
通過Composer安裝PHPUnit并使用Composer生成的自動加載器。然后,您不得使用以外的可執(zhí)行文件調(diào)用PHPUnit vendor/bin/phpunit。
"require-dev": {
"phpunit/phpunit": "*"
},
- 2 回答
- 0 關(guān)注
- 237 瀏覽
添加回答
舉報
0/150
提交
取消