Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 41afe53

Browse files
authored
Merge pull request repejota#66 from repejota/phpspec
Phpspec
2 parents c751563 + 0ec2087 commit 41afe53

12 files changed

Lines changed: 2216 additions & 19 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.contrib
2+
bin
23
vendor
34
cover
45
*.phar
5-
composer.lock
6+
/composer.phar
67
build
78
.idea

Makefile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
lint:
22
find src -name *.php -exec php -l {} \;
3-
find tests -name *.php -exec php -l {} \;
3+
find test -name *.php -exec php -l {} \;
4+
find spec -name *.php -exec php -l {} \;
45
find examples -name *.php -exec php -l {} \;
5-
6+
67
cs: lint
7-
./vendor/bin/phpcbf --standard=PSR2 src tests examples
8-
./vendor/bin/phpcs --standard=PSR2 --warning-severity=0 src tests examples
9-
./vendor/bin/phpcs --standard=Squiz --sniffs=Squiz.Commenting.FunctionComment,Squiz.Commenting.FunctionCommentThrowTag,Squiz.Commenting.ClassComment,Squiz.Commenting.VariableComment src tests examples
8+
./bin/phpcbf --standard=PSR2 src tests examples
9+
./bin/phpcs --standard=PSR2 --warning-severity=0 src tests examples
10+
./bin/phpcs --standard=Squiz --sniffs=Squiz.Commenting.FunctionComment,Squiz.Commenting.FunctionCommentThrowTag,Squiz.Commenting.ClassComment,Squiz.Commenting.VariableComment src tests examples
1011

1112
test:
12-
./vendor/bin/phpunit
13+
./bin/phpunit test
1314

14-
cover:
15-
./vendor/bin/phpunit --coverage-html ./cover
15+
bdd:
16+
./bin/phpspec run
1617

18+
cover:
19+
./bin/phpunit --coverage-html ./cover test
1720
deps:
1821
wget -q https://getcomposer.org/composer.phar -O ./composer.phar
1922
chmod +x composer.phar
2023
php composer.phar install
2124

2225
dist-clean:
26+
rm -rf bin
2327
rm -rf vendor
2428
rm -f composer.phar
2529
rm -f composer.lock

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"require-dev": {
1111
"phpunit/phpunit": "4.7.*",
1212
"satooshi/php-coveralls": "dev-master",
13-
"squizlabs/php_codesniffer": "~2.0"
13+
"squizlabs/php_codesniffer": "~2.0",
14+
"phpspec/phpspec": "~2.0"
15+
},
16+
"config": {
17+
"bin-dir": "bin"
1418
},
1519
"authors": [
1620
{
@@ -38,13 +42,9 @@
3842
}
3943
],
4044
"autoload": {
41-
"psr-4": {
42-
"Nats\\": "src"
43-
}
44-
},
45-
"autoload-dev": {
46-
"psr-4": {
47-
"Tests\\Nats\\": "tests/Unit"
45+
"psr-0": {
46+
"Nats": "src",
47+
"Nats\\Test": "src"
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)