Created
February 27, 2016 13:12
-
-
Save brad-jones/392122e55f751d8497fc to your computer and use it in GitHub Desktop.
Test Case for goaop/parser-reflection
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
{ | |
"require": { | |
"goaop/parser-reflection": "^1.0", | |
"symfony/console": "^3.0" | |
} | |
} |
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
{ | |
"_readme": [ | |
"This file locks the dependencies of your project to a known state", | |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", | |
"This file is @generated automatically" | |
], | |
"hash": "c4b5c26f4880d9568478be64b0e1578e", | |
"content-hash": "a1106358afc87e6832d0e4936dc2d19d", | |
"packages": [ | |
{ | |
"name": "goaop/parser-reflection", | |
"version": "1.0.1", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/goaop/parser-reflection.git", | |
"reference": "d8f51e0f7c8bbe054d9223fdef5247843a0f3cae" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/goaop/parser-reflection/zipball/d8f51e0f7c8bbe054d9223fdef5247843a0f3cae", | |
"reference": "d8f51e0f7c8bbe054d9223fdef5247843a0f3cae", | |
"shasum": "" | |
}, | |
"require": { | |
"nikic/php-parser": "^1.2|^2.0", | |
"php": ">=5.5.0" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.0" | |
}, | |
"type": "library", | |
"autoload": { | |
"psr-4": { | |
"Go\\ParserReflection\\": "src" | |
}, | |
"files": [ | |
"src/bootstrap.php" | |
], | |
"exclude-from-classmap": [ | |
"/tests/" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Alexander Lisachenko", | |
"email": "lisachenko.it@gmail.com" | |
} | |
], | |
"description": "Provides reflection information, based on raw source", | |
"time": "2016-02-21 15:27:42" | |
}, | |
{ | |
"name": "nikic/php-parser", | |
"version": "v2.0.0", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/nikic/PHP-Parser.git", | |
"reference": "c542e5d86a9775abd1021618eb2430278bfc1e01" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c542e5d86a9775abd1021618eb2430278bfc1e01", | |
"reference": "c542e5d86a9775abd1021618eb2430278bfc1e01", | |
"shasum": "" | |
}, | |
"require": { | |
"ext-tokenizer": "*", | |
"php": ">=5.4" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4.0" | |
}, | |
"bin": [ | |
"bin/php-parse" | |
], | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "2.0-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"PhpParser\\": "lib/PhpParser" | |
} | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"BSD-3-Clause" | |
], | |
"authors": [ | |
{ | |
"name": "Nikita Popov" | |
} | |
], | |
"description": "A PHP parser written in PHP", | |
"keywords": [ | |
"parser", | |
"php" | |
], | |
"time": "2015-12-04 15:28:43" | |
}, | |
{ | |
"name": "symfony/console", | |
"version": "v3.0.2", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/symfony/console.git", | |
"reference": "5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/symfony/console/zipball/5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0", | |
"reference": "5a02eaadaa285e2bb727eb6bbdfb8201fcd971b0", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.5.9", | |
"symfony/polyfill-mbstring": "~1.0" | |
}, | |
"require-dev": { | |
"psr/log": "~1.0", | |
"symfony/event-dispatcher": "~2.8|~3.0", | |
"symfony/process": "~2.8|~3.0" | |
}, | |
"suggest": { | |
"psr/log": "For using the console logger", | |
"symfony/event-dispatcher": "", | |
"symfony/process": "" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "3.0-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Symfony\\Component\\Console\\": "" | |
}, | |
"exclude-from-classmap": [ | |
"/Tests/" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Fabien Potencier", | |
"email": "fabien@symfony.com" | |
}, | |
{ | |
"name": "Symfony Community", | |
"homepage": "https://symfony.com/contributors" | |
} | |
], | |
"description": "Symfony Console Component", | |
"homepage": "https://symfony.com", | |
"time": "2016-02-02 13:44:19" | |
}, | |
{ | |
"name": "symfony/polyfill-mbstring", | |
"version": "v1.1.0", | |
"source": { | |
"type": "git", | |
"url": "https://github.com/symfony/polyfill-mbstring.git", | |
"reference": "1289d16209491b584839022f29257ad859b8532d" | |
}, | |
"dist": { | |
"type": "zip", | |
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", | |
"reference": "1289d16209491b584839022f29257ad859b8532d", | |
"shasum": "" | |
}, | |
"require": { | |
"php": ">=5.3.3" | |
}, | |
"suggest": { | |
"ext-mbstring": "For best performance" | |
}, | |
"type": "library", | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.1-dev" | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Symfony\\Polyfill\\Mbstring\\": "" | |
}, | |
"files": [ | |
"bootstrap.php" | |
] | |
}, | |
"notification-url": "https://packagist.org/downloads/", | |
"license": [ | |
"MIT" | |
], | |
"authors": [ | |
{ | |
"name": "Nicolas Grekas", | |
"email": "p@tchwork.com" | |
}, | |
{ | |
"name": "Symfony Community", | |
"homepage": "https://symfony.com/contributors" | |
} | |
], | |
"description": "Symfony polyfill for the Mbstring extension", | |
"homepage": "https://symfony.com", | |
"keywords": [ | |
"compatibility", | |
"mbstring", | |
"polyfill", | |
"portable", | |
"shim" | |
], | |
"time": "2016-01-20 09:13:37" | |
} | |
], | |
"packages-dev": [], | |
"aliases": [], | |
"minimum-stability": "stable", | |
"stability-flags": [], | |
"prefer-stable": false, | |
"prefer-lowest": false, | |
"platform": [], | |
"platform-dev": [] | |
} |
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
<?php | |
require('vendor/autoload.php'); | |
use Go\ParserReflection\ReflectionClass; | |
use Symfony\Component\Console\Command\HelpCommand; | |
$parsedClass = new ReflectionClass(HelpCommand::class); | |
$parsedClass->getConstructor()->getParameters(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment