Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 4528ec7

Browse files
committed
beat the collegue
1 parent 790406f commit 4528ec7

File tree

559 files changed

+46703
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

559 files changed

+46703
-24
lines changed

.phpunit/.5.7.md5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
078c5fb3e25446a8925ae3d63aae4a98
2+
symfony/yaml

.phpunit/5.7.zip

414 KB
Binary file not shown.

.phpunit/phpunit-5.7/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/build export-ignore
2+
3+
*.php diff=php
4+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic
14+
addresses, without explicit permission
15+
* Other unethical or unprofessional conduct
16+
17+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
18+
19+
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
20+
21+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
22+
23+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
24+
25+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]
26+
27+
[homepage]: http://contributor-covenant.org
28+
[version]: http://contributor-covenant.org/version/1/3/0/
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Contributing to PHPUnit
2+
3+
## Contributor Code of Conduct
4+
5+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
6+
7+
## Workflow
8+
9+
* Fork the project.
10+
* Make your bug fix or feature addition.
11+
* Add tests for it. This is important so we don't break it in a future version unintentionally.
12+
* Send a pull request. Bonus points for topic branches.
13+
14+
Please make sure that you have [set up your user name and email address](http://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for use with Git. Strings such as `silly nick name <root@localhost>` look really stupid in the commit history of a project.
15+
16+
Pull requests for bug fixes must be based on the current stable branch whereas pull requests for new features must be based on the `master` branch.
17+
18+
We are trying to keep backwards compatibility breaks in PHPUnit to an absolute minimum. Please take this into account when proposing changes.
19+
20+
Due to time constraints, we are not always able to respond as quickly as we would like. Please do not take delays personal and feel free to remind us if you feel that we forgot to respond.
21+
22+
## Coding Guidelines
23+
24+
This project comes with a configuration file for [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) (`.php_cs`) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines:
25+
26+
```bash
27+
$ wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer.phar
28+
29+
$ php php-cs-fixer.phar fix
30+
```
31+
32+
## Using PHPUnit from a Git checkout
33+
34+
The following commands can be used to perform the initial checkout of PHPUnit:
35+
36+
```bash
37+
$ git clone git://github.com/sebastianbergmann/phpunit.git
38+
39+
$ cd phpunit
40+
```
41+
42+
Retrieve PHPUnit's dependencies using [Composer](https://getcomposer.org/):
43+
44+
```bash
45+
$ composer install
46+
```
47+
48+
The `phpunit` script can be used to invoke the PHPUnit test runner:
49+
50+
```bash
51+
$ ./phpunit --version
52+
```
53+
54+
## Running PHPUnit's own test suite
55+
56+
After following the steps shown above, PHPUnit's own test suite is run like this:
57+
58+
```bash
59+
$ ./phpunit
60+
```
61+
62+
## Reporting issues
63+
64+
Please use the most specific issue tracker to search for existing tickets and to open new tickets:
65+
66+
* [General problems](https://github.com/sebastianbergmann/phpunit/issues)
67+
* [Code Coverage](https://github.com/sebastianbergmann/php-code-coverage/issues)
68+
* [Stub and Mock Objects](https://github.com/sebastianbergmann/phpunit-mock-objects/issues)
69+
* [DbUnit](https://github.com/sebastianbergmann/dbunit/issues)
70+
* [Documentation](https://github.com/sebastianbergmann/phpunit-documentation/issues)
71+
* [Website](https://github.com/sebastianbergmann/phpunit-website/issues)
72+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
| Q | A
2+
| --------------------| ---------------
3+
| PHPUnit version | x.y.z
4+
| PHP version | x.y.z
5+
| Installation Method | Composer / PHAR
6+
7+
<!--
8+
- Please fill in this template according to your issue.
9+
- Please keep the table shown above at the top of your issue.
10+
- Please include the output of "composer info | sort" if you installed PHPUnit using Composer.
11+
- Please post code as text (using proper markup). Do not post screenshots of code.
12+
- Visit https://phpunit.de/support.html if you are looking for support.
13+
- Otherwise, replace this comment by the description of your issue.
14+
-->
15+

.phpunit/phpunit-5.7/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/.ant_targets
2+
/.idea
3+
/.php_cs
4+
/.php_cs.cache
5+
/build/documentation
6+
/build/logfiles
7+
/build/phar
8+
/build/phpdox
9+
/build/*.phar
10+
/build/*.phar.asc
11+
/build/binary-phar-autoload.php
12+
/cache.properties
13+
/composer.lock
14+
/tests/TextUI/*.diff
15+
/tests/TextUI/*.exp
16+
/tests/TextUI/*.log
17+
/tests/TextUI/*.out
18+
/tests/TextUI/*.php
19+
/vendor
20+

.phpunit/phpunit-5.7/.php_cs.dist

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php
2+
$header = <<<'EOF'
3+
This file is part of PHPUnit.
4+
5+
(c) Sebastian Bergmann <[email protected]>
6+
7+
For the full copyright and license information, please view the LICENSE
8+
file that was distributed with this source code.
9+
EOF;
10+
11+
return PhpCsFixer\Config::create()
12+
->setRiskyAllowed(true)
13+
->setRules(
14+
[
15+
'array_syntax' => ['syntax' => 'short'],
16+
'binary_operator_spaces' => [
17+
'align_double_arrow' => true,
18+
'align_equals' => true
19+
],
20+
'blank_line_after_namespace' => true,
21+
'blank_line_before_return' => true,
22+
'braces' => true,
23+
'cast_spaces' => true,
24+
'concat_space' => ['spacing' => 'one'],
25+
'elseif' => true,
26+
'encoding' => true,
27+
'full_opening_tag' => true,
28+
'function_declaration' => true,
29+
'header_comment' => ['header' => $header, 'separate' => 'none'],
30+
'indentation_type' => true,
31+
'line_ending' => true,
32+
'lowercase_constants' => true,
33+
'lowercase_keywords' => true,
34+
'method_argument_space' => true,
35+
'no_alias_functions' => true,
36+
'no_blank_lines_after_class_opening' => true,
37+
'no_blank_lines_after_phpdoc' => true,
38+
'no_closing_tag' => true,
39+
'no_empty_phpdoc' => true,
40+
'no_empty_statement' => true,
41+
'no_extra_consecutive_blank_lines' => true,
42+
'no_leading_namespace_whitespace' => true,
43+
'no_singleline_whitespace_before_semicolons' => true,
44+
'no_spaces_after_function_name' => true,
45+
'no_spaces_inside_parenthesis' => true,
46+
'no_trailing_comma_in_list_call' => true,
47+
'no_trailing_whitespace' => true,
48+
'no_unused_imports' => true,
49+
'no_whitespace_in_blank_line' => true,
50+
'phpdoc_align' => true,
51+
'phpdoc_indent' => true,
52+
'phpdoc_no_access' => true,
53+
'phpdoc_no_empty_return' => true,
54+
'phpdoc_no_package' => true,
55+
'phpdoc_scalar' => true,
56+
'phpdoc_separation' => true,
57+
'phpdoc_to_comment' => true,
58+
'phpdoc_trim' => true,
59+
'phpdoc_types' => true,
60+
'phpdoc_var_without_name' => true,
61+
'self_accessor' => true,
62+
'simplified_null_return' => true,
63+
'single_blank_line_at_eof' => true,
64+
'single_import_per_statement' => true,
65+
'single_line_after_imports' => true,
66+
'single_quote' => true,
67+
'ternary_operator_spaces' => true,
68+
'trim_array_spaces' => true,
69+
'visibility_required' => true,
70+
]
71+
)
72+
->setFinder(
73+
PhpCsFixer\Finder::create()
74+
->files()
75+
->in(__DIR__ . '/build')
76+
->in(__DIR__ . '/src')
77+
->in(__DIR__ . '/tests/Framework')
78+
->in(__DIR__ . '/tests/Runner')
79+
->in(__DIR__ . '/tests/Util')
80+
->name('*.php')
81+
);

.phpunit/phpunit-5.7/.stickler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters:
2+
phpcs:
3+
standard: 'build/phpcs.xml'

.phpunit/phpunit-5.7/.travis.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
language: php
2+
3+
sudo: false
4+
5+
addons:
6+
apt:
7+
packages:
8+
- libxml2-utils
9+
10+
php:
11+
- 5.6
12+
- 7.0
13+
- 7.1
14+
- 7.2
15+
- master
16+
17+
matrix:
18+
allow_failures:
19+
- php: 7.2
20+
- php: master
21+
fast_finish: true
22+
23+
env:
24+
matrix:
25+
- DEPENDENCIES="high"
26+
- DEPENDENCIES="low"
27+
global:
28+
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
29+
30+
before_install:
31+
- composer self-update
32+
- composer clear-cache
33+
34+
install:
35+
- if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
36+
- if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
37+
38+
before_script:
39+
- echo 'zend.assertions=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
40+
- echo 'assert.exception=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
41+
42+
script:
43+
- ./phpunit --coverage-clover=coverage.xml
44+
- ./phpunit --configuration ./build/travis-ci-fail.xml > /dev/null; if [ $? -eq 0 ]; then echo "SHOULD FAIL"; false; else echo "fail checked"; fi;
45+
- xmllint --noout --schema phpunit.xsd phpunit.xml
46+
- xmllint --noout --schema phpunit.xsd tests/_files/configuration.xml
47+
- xmllint --noout --schema phpunit.xsd tests/_files/configuration_empty.xml
48+
- xmllint --noout --schema phpunit.xsd tests/_files/configuration_xinclude.xml -xinclude
49+
50+
after_success:
51+
- bash <(curl -s https://codecov.io/bash)
52+
53+
notifications:
54+
email: false
55+

0 commit comments

Comments
 (0)