public function testCreate() { $this->assertInstanceOf('Herrera\\Box\\Signature', Signature::create(RES_DIR . '/example.phar')); }
/** * 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(); }