Ниже кусок кодаChannelsTest::testGetChannels()
session_start(): Cannot send session cookie - headers already sent by (output started at C:\apache\29Club\protected\config\main.php:1)
Код: Выделить всё
class ChannelsTest extends CTestCase {
/**
*
* @var Channels
*/
private $Channels;
/**
* Prepares the environment before running a test.
*/
protected function setUp() {
Yii::app()->user->id = 67;
$this->Channels = new Channels(/* parameters */);
parent::setUp ();
}
/**
* Cleans up the environment after running a test.
*/
protected function tearDown() {
$this->Channels = null;
parent::tearDown ();
}
/**
* Constructs the test case.
*/
public function __construct() {
}