Skip to content

Commit 018c3fe

Browse files
committed
Merge pull request #236 from henriquemoody/cleanups
Cleanups
2 parents e1b10c8 + f568061 commit 018c3fe

9 files changed

+42
-1714
lines changed

.gitignore

+2-28
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
.foundation
2-
library/Zend/
3-
library/Symfony/
4-
.buildpath
5-
.project
6-
.settings/
7-
nbproject
8-
tests/reports
9-
*.phar
10-
/library/.fr-6ayG1u/
11-
/library/.fr-n9BajN/
12-
*.7z
13-
*.jar
14-
*.rar
15-
*.zip
16-
*.gz
17-
*.bzip
18-
*.xz
19-
*.lzma
20-
*.iso
21-
*.tar
22-
*.dmg
23-
*.xpi
24-
*.gem
25-
*.egg
26-
*.deb
27-
*.rpm
28-
*.tgz
1+
Makefile
2+
phpunit.xml
293
vendor/

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ cache:
1818

1919
before_script:
2020
- composer install --dev --no-interaction --prefer-source
21-
- phpenv rehash
2221

2322
script:
24-
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.clover --testdox tests/
23+
- vendor/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-clover=coverage.clover
2524

2625
after_script:
2726
- wget https://scrutinizer-ci.com/ocular.phar

CONTRIBUTING.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,23 @@ and will natively have support for chaining and everything else.
113113

114114
## Running Tests
115115

116-
Make sure you have PHPUnit installed. Instructions can be found on http://phpunit.de.
117-
Then, go to the `tests` folder on your terminal and type `phpunit .`. No test should fail.
116+
After run `composer install` on the library's root directory you must run PHPUnit.
117+
118+
### Linux
119+
120+
You can test the project using the commands:
121+
```sh
122+
$ vendor/bin/phpunit
123+
```
124+
125+
### Windows
126+
127+
You can test the project using the commands:
128+
```sh
129+
$ vendor\bin\phpunit
130+
```
131+
132+
No test should fail.
118133

119134
## Sending your code to us
120135

Makefile

-942
This file was deleted.

README.md

+10-28
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Respect\Validation
22
==================
33

4-
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation)
5-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Respect/Validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/Respect/Validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
7-
[![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation)
8-
[![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation)
9-
[![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
4+
[![Build Status](https://img.shields.io/travis/Respect/Validation.svg?style=flat-square)](http://travis-ci.org/Respect/Validation)
5+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Respect/Validation.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
6+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/Respect/Validation.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
7+
[![Latest Stable Version](https://img.shields.io/packagist/v/respect/validation.svg?style=flat-square&label=stable)](https://packagist.org/packages/respect/validation)
8+
[![Total Downloads](https://img.shields.io/packagist/dt/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
9+
[![License](https://img.shields.io/packagist/l/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
1010

1111
[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)
1212

@@ -17,29 +17,11 @@ Respect\Validation
1717
Installation
1818
------------
1919

20-
Packages available on [PEAR](http://respect.li/pear) and [Composer](http://packagist.org/packages/Respect/Validation). Autoloading is [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compatible.
20+
The package is available on [Packagist](http://packagist.org/packages/respect/validation).
21+
Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compatible.
2122

22-
Test
23-
----
24-
25-
### Linux
26-
27-
You can test the project using the commands:
28-
```sh
29-
$ cd <project folder>
30-
$ curl -sS https://getcomposer.org/installer | php
31-
$ composer.phar install
32-
$ vendor/bin/phpunit tests
33-
```
34-
35-
### Windows
36-
37-
You can test the project using the commands:
38-
```sh
39-
$ cd <project folder>
40-
$ curl -sS https://getcomposer.org/installer | php
41-
$ composer.phar install
42-
$ vendor\bin\phpunit tests
23+
```shell
24+
composer require respect/validation
4325
```
4426

4527
Feature Guide

composer.json

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Respect/Validation",
2+
"name": "respect/validation",
33
"description": "The most awesome validation engine ever created for PHP",
44
"keywords": ["respect", "validation", "validator"],
55
"type": "library",
@@ -11,17 +11,13 @@
1111
"homepage": "https://github.com/Respect/Validation/graphs/contributors"
1212
}
1313
],
14-
"repositories": [{
15-
"type": "composer",
16-
"url": "https://packages.zendframework.com/"
17-
}],
1814
"require": {
19-
"php": ">=5.3.0"
15+
"php": ">=5.3.0"
2016
},
2117
"require-dev": {
22-
"zendframework/zend-validator": "~2.0",
23-
"symfony/validator": "~2.1",
24-
"phpunit/phpunit": "~4.0"
18+
"phpunit/phpunit": "~4.0",
19+
"symfony/validator": "~2.6",
20+
"zendframework/zend-validator": "~2.3"
2521
},
2622
"suggest": {
2723
"ext-bcmath": "Arbitrary Precision Mathematics",

package.ini

-72
This file was deleted.

0 commit comments

Comments
 (0)