diff --git a/composer.json b/composer.json new file mode 100644 index 00000000000..7abe8a42e8b --- /dev/null +++ b/composer.json @@ -0,0 +1,59 @@ +{ + "name": "phpunit/phpunit", + "description": "The PHP Unit Testing framework.", + "type": "library", + "keywords": [ + "phpunit", + "xunit", + "testing" + ], + "homepage": "http://www.phpunit.de/", + "license": "BSD-3-Clause", + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "version": "3.7.0RC5", + "time": "2012-09-17", + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "irc": "irc://irc.freenode.net/phpunit" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-file-iterator": ">=1.3.1", + "phpunit/php-text-template": ">=1.1.1", + "phpunit/php-code-coverage": ">=1.2.0RC1", + "phpunit/php-timer": ">=1.0.2", + "phpunit/phpunit-mock-objects": ">=1.2.0RC1", + "symfony/yaml": ">=2.1.0RC1", + "ext-dom": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*" + }, + "suggest": { + "phpunit/php-invoker": ">=1.1.0", + "ext-json": "*", + "ext-simplexml": "*", + "ext-tokenizer": "*" + }, + "bin": [ + "composer/bin/phpunit", + "phpunit.bat" + ], + "config": { + "bin-dir": "bin" + }, + "autoload": { + "files": [ + "PHPUnit/Autoload.php" + ] + }, + "include-path": [ + "" + ] +} diff --git a/composer/bin/phpunit b/composer/bin/phpunit new file mode 100755 index 00000000000..1cfe331c16c --- /dev/null +++ b/composer/bin/phpunit @@ -0,0 +1,42 @@ +#!/usr/bin/env php +. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * * Neither the name of Sebastian Bergmann nor the names of his + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main'); + +// pull in vendor/autoload.php as defined by composer +require __DIR__ .'/../../../../autoload.php'; + +PHPUnit_TextUI_Command::main(); diff --git a/package-composer.json b/package-composer.json new file mode 100644 index 00000000000..1658b9285c3 --- /dev/null +++ b/package-composer.json @@ -0,0 +1,28 @@ +{ + "keywords": [ "phpunit", "xunit", "testing" ], + "license": "BSD-3-Clause", + "homepage": "http://www.phpunit.de/", + "dependency_map": { + "pear.phpunit.de/File_Iterator": "phpunit/php-file-iterator", + "pear.phpunit.de/Text_Template": "phpunit/php-text-template", + "pear.phpunit.de/PHP_CodeCoverage": "phpunit/php-code-coverage", + "pear.phpunit.de/PHP_Timer": "phpunit/php-timer", + "pear.phpunit.de/PHPUnit_MockObject": "phpunit/phpunit-mock-objects", + "pear.phpunit.de/PHP_Invoker": "phpunit/php-invoker", + "pear.symfony.com/Yaml": "symfony/yaml" + }, + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "irc": "irc://irc.freenode.net/phpunit" + }, + "autoload": { + "files": [ "PHPUnit/Autoload.php" ] + }, + "include_path": [ + "" + ], + "bin": [ + "composer/bin/phpunit", + "phpunit.bat" + ] +} \ No newline at end of file