예제 #1
0
 public function testCreate()
 {
     $this->assertInstanceOf('Herrera\\Box\\Signature', Signature::create(RES_DIR . '/example.phar'));
 }
예제 #2
0
파일: Box.php 프로젝트: ajbm6/box2-lib
 /**
  * Returns the signature of the phar.
  *
  * This method does not use the extension to extract the phar's signature.
  *
  * @param string  $path The phar file path.
  *
  * @return array The signature.
  */
 public static function getSignature($path)
 {
     return Signature::create($path)->get();
 }