public function testStateFile()
 {
     $sp = new CStatePersister();
     $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'state.bin';
     $sp->stateFile = $file;
     $this->assertEquals($sp->stateFile, $file);
     $sp->stateFile = dirname(__FILE__) . '/unknown/state.bin';
     $this->setExpectedException('CException');
     $sp->init();
 }
 /**
  * Init
  */
 public function init()
 {
     $this->stateFile = craft()->path->getStatePath() . 'state.bin';
     parent::init();
 }