コード例 #1
0
 public function testHashedClassName()
 {
     $classNameWithHash = CommanderUtilities::getClassNameWithHash(new HashableTestClass());
     $this->assertSame("HashableTestClass_abc4500", $classNameWithHash);
 }
コード例 #2
0
 /**
  * @param TestableLockableCommand $command
  *
  * @return string
  */
 private function getCommandLockfilePath(TestableLockableCommand $command)
 {
     $classNameWithHash = CommanderUtilities::getClassNameWithHash($command);
     return self::$lockFileDir . '/' . $classNameWithHash . '.lock';
 }