Example #1
0
 /**
  * @covers PsSequenceFile::inst
  */
 public function testInst()
 {
     try {
         PsSequenceFile::inst(TestSequence::fileDiBreak(), 1, -1, 1);
         $this->brakeNoException();
     } catch (PException $ex) {
     }
     try {
         PsSequenceFile::inst(TestSequence::fileDiBreak(), 1, 1, 1);
         $this->brakeNoException();
     } catch (PException $ex) {
     }
     try {
         PsSequenceFile::inst(TestSequence::fileDiBreak(), 1, 2, -1);
         $this->brakeNoException();
     } catch (PException $ex) {
     }
 }
Example #2
0
 /**
  * Сиквенс для логгера
  * 
  * @return AbstractSequence
  */
 public static function LOG()
 {
     return PsSequenceFile::inst(PsLogger::DM()->getDirItem(null, 'lastnum'), 1, PsLogger::MAX_SESSIONS);
 }