Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer support #646

Merged
merged 18 commits into from Sep 18, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 59 additions & 0 deletions 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": [
""
]
}
42 changes: 42 additions & 0 deletions composer/bin/phpunit
@@ -0,0 +1,42 @@
#!/usr/bin/env php
<?php
/* PHPUnit
*
* Copyright (c) 2001-2012, Sebastian Bergmann <sebastian@phpunit.de>.
* 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();
28 changes: 28 additions & 0 deletions 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"
]
}