0
我創建了一個codeception單元測試:codeception單元測試僅用於公共函數運行TESTME
<?php
use Something\SiteResultsHolder;
class ResultHolderTest extends \Codeception\TestCase\Test
{
/**
* @var \UnitTester
*/
protected $tester;
protected function _before()
{
}
protected function _after()
{
}
// tests
public function testMe()
{
//this test run
}
public function checkLimit() {
//this test doesn't run
}
}
我把這種在終端:
codecept run unit
但唯一的測試呼叫是 - > TESTME 並且它不運行 - > checkLimit
它們都是公共的。
當我進行驗收測試時,所有公共方法都是不同的測試,但在這裏似乎並不奏效。
如何在那裏添加測試?那會被稱爲?