0
當我運行我的功能測試
Yii的硒功能測試問題
phpunit functional/LoginTest.php
它開始我的網頁瀏覽器
$this->open('http://mysite.com/');
但它使用index.php
而不是index-test.php
,我有不知道爲什麼。
在WebTestCase
類有WebTestCase
protected function setUp()
{
parent::setUp();
$this->setBrowser('*googlechrome');
$this->setBrowserUrl(TEST_BASE_URL);
}
的恆定
define('TEST_BASE_URL','http://mysite.com/index-test.php/');
和設置方法請告訴我,爲什麼它一直在打index.php
代替index-test.php
?