Created
September 19, 2016 16:29
-
-
Save travispaul/0d6ed0d88bfb93f8e041f503b3853956 to your computer and use it in GitHub Desktop.
php-manta test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tpaul@mba:/Users/tpaul/Code/php-manta/examples | |
$ mget ~~/ | |
{"name":"jobs","type":"directory","mtime":"2013-05-22T17:39:43.714Z"} | |
{"name":"public","type":"directory","mtime":"2013-05-22T17:39:43.714Z"} | |
{"name":"reports","type":"directory","mtime":"2013-05-22T17:39:43.714Z"} | |
{"name":"stor","type":"directory","mtime":"2013-05-22T17:39:43.714Z"} | |
tpaul@mba:/Users/tpaul/Code/php-manta/examples | |
$ php mget.php ~~/ | |
PHP Warning: openssl_sign(): supplied key param cannot be coerced into a private key in /Users/tpaul/Code/php-manta/src/MantaClient.php on line 372 | |
PHP Fatal error: Uncaught Joyent\Manta\MantaException: 400 Bad Request - [InvalidHeader] Invalid Signature Authorization header: signature was not specified [/tpaul/] (992e2e6d-f6af-4362-9693-d0384aa93f92) in /Users/tpaul/Code/php-manta/src/MantaClient.php:446 | |
Stack trace: | |
#0 /Users/tpaul/Code/php-manta/src/MantaClient.php(861): Joyent\Manta\MantaClient->execute('GET', '/tpaul/', NULL, NULL, true) | |
#1 /Users/tpaul/Code/php-manta/examples/mget.php(45): Joyent\Manta\MantaClient->getObjectAsStream('/tpaul/') | |
#2 {main} | |
thrown in /Users/tpaul/Code/php-manta/src/MantaClient.php on line 446 | |
tpaul@mba:/Users/tpaul/Code/php-manta/examples | |
$ php --version | |
PHP 7.1.0beta3 (cli) (built: Aug 25 2016 06:58:54) ( NTS ) | |
Copyright (c) 1997-2016 The PHP Group | |
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies | |
tpaul@mba:/Users/tpaul/Code/php-manta/examples | |
$ cd .. | |
tpaul@mba:/Users/tpaul/Code/php-manta | |
$ phpunit tests/unit/ | |
PHPUnit 4.8.27 by Sebastian Bergmann and contributors. | |
............. | |
Time: 118 ms, Memory: 6.00MB | |
OK (13 tests, 13 assertions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment