mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-03 23:04:04 +01:00
14 lines
412 B
PHP
14 lines
412 B
PHP
<?php
|
|
|
|
class CApplicationComponentTest extends CTestCase {
|
|
public function testInitialization() {
|
|
$c = $this->getMockForAbstractClass('CApplicationComponent',array('init','getIsInitialized'),'',NULL);
|
|
$c->expects($this->any())
|
|
->method('getIsInitialized')
|
|
->will($this->returnValue(FALSE));
|
|
$this->assertFalse($c->getIsInitialized());
|
|
$c->init();
|
|
$this->assertTrue($c->getIsInitialized());
|
|
}
|
|
}
|