Exemplo n.º 1
0
 public function testOutput()
 {
     $obj = new TestController('id', Yii::$app);
     $this->assertEquals(0, $obj->outputInfo('info'));
     $this->assertEquals(0, $obj->outputSuccess('success'));
     $this->assertEquals(1, $obj->outputError('error'));
 }