示例#1
0
文件: ContextTest.php 项目: fwk/core
 public function testErrorState()
 {
     $this->assertFalse($this->object->isError());
     $this->object->setError('test error');
     $this->assertTrue($this->object->isError());
     $this->assertEquals(Context::STATE_ERROR, $this->object->getState());
     $this->assertEquals('test error', $this->object->getError());
 }