예제 #1
0
 public function testFlag()
 {
     $this->_model->setFlag('flag_name', 'flag_value');
     $this->assertEquals('flag_value', $this->_model->getFlag('flag_name'));
     $this->assertTrue($this->_model->hasFlag('flag_name'));
     $this->assertNull($this->_model->getFlag('non_existing_flag'));
 }