Skip to content

Commit ae2bd5b

Browse files
authored
Release v0.3 (#4)
* issue quality * fix: codestyle * group by controller * add bootstrap
1 parent e1792be commit ae2bd5b

38 files changed

+6158
-1088
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
trim_trailing_whitespace = false
9+
10+
[*.{php, inc}]
11+
indent_size = 4
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.{yml,yaml}]
17+
indent_size = 2

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
2-
vendor/
2+
vendor/
3+
.phpunit.result.cache

README.md

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# LaravelRouteCoverage
2+
![Packagist Version](https://img.shields.io/packagist/v/yzen.dev/laravel-route-coverage?color=%23007ec6&style=plastic)
3+
![Packagist Downloads](https://img.shields.io/packagist/dm/yzen.dev/laravel-route-coverage)
4+
![Packagist Downloads](https://img.shields.io/packagist/dt/yzen.dev/laravel-route-coverage)
25

36
Laravel route coverage report.
47

@@ -27,22 +30,3 @@ Also the html report will be saved in the public/route-coverage directory:
2730

2831
![image](https://user-images.githubusercontent.com/24630195/122606142-2250a080-d081-11eb-9950-0ed795d9c7b8.png)
2932

30-
31-
The parser parses most requests, for example, such constructions will definitely be recognized
32-
33-
```php
34-
$this->json('GET', '/api/v1/agents/' . $agent->id . '/auth/token');
35-
$this->json('POST', '/api/v1/bids', [], ['Authorisation' => 'bearer ' . $response['data']['token']]);
36-
$this->json('POST', '/api/v1/agents')->assertForbidden();
37-
$this->json('PUT', '/api/v1/agents/' . $agent->id . '/users/' . $subUser->id . '/blocked')
38-
$this->post('/api/v1/agents')->assertForbidden();
39-
$this->postJson('/api/v1/agents')->assertForbidden();
40-
$this->get('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
41-
$this->getJson('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
42-
$this->put('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
43-
$this->putJson('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
44-
$this->patch('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
45-
$this->patchJson('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
46-
$this->delete('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
47-
$this->deleteJson('/api/v1/agents/' . $agent->id . '/auth/token')->assertForbidden();
48-
```

composer.json

+29-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,42 @@
2525
"LaravelRouteCoverage\\": "src/"
2626
}
2727
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"Tests\\": "tests/"
31+
}
32+
},
2833
"require": {
29-
"php": "^7.2 || ^8.0",
30-
"illuminate/console": "^7.0 || ^v8.0"
34+
"php": "^7.4 || ^8.0",
35+
"illuminate/console": "^7.0 || ^v8.0",
36+
"illuminate/routing": "^7.0 || ^v8.0",
37+
"illuminate/config": "^7.0 || ^v8.0"
38+
},
39+
"require-dev": {
40+
"phpstan/phpstan": "^0.12.82",
41+
"mockery/mockery": "^1.0",
42+
"phpunit/phpunit": "^9.3",
43+
"squizlabs/php_codesniffer": "*"
3144
},
3245
"extra": {
3346
"laravel": {
3447
"providers": [
3548
"LaravelRouteCoverage\\ServiceProvider"
3649
]
3750
}
51+
},
52+
"scripts": {
53+
"phpunit": [
54+
"./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml"
55+
],
56+
"phpstan": [
57+
"./vendor/bin/phpstan analyse -c ./phpstan.neon src"
58+
],
59+
"phpcs": [
60+
"./vendor/bin/phpcs --standard=./phpcs.xml -n --no-cache -s"
61+
],
62+
"phpcbf": [
63+
"./vendor/bin/phpcbf --standard=./phpcs.xml -n --no-cache -s"
64+
]
3865
}
3966
}

0 commit comments

Comments
 (0)