public function testRegister()
 {
     $file = new \SplFileInfo(__FILE__);
     SplFileInfo::register($file);
     $this->assertInstanceOf(SplFileInfo::class, $file->getFileInfo());
 }
 /**
  * @param \SplFileInfo $for
  *
  * @return \SplFileInfo
  */
 public static function register(\SplFileInfo $for)
 {
     $for->setInfoClass(static::class);
     return $for;
 }