Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.

Commit 6ce741b

Browse files
committed
Updated PHPUnit and Mockery
1 parent 526be5c commit 6ce741b

5 files changed

Lines changed: 29 additions & 23 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.php_cs.cache
3-
composer.phar
4-
composer.lock
3+
.phpunit.result.cache
54
/vendor
5+
composer.lock
6+
composer.phar

.php_cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ return Config::create()
1010
'blank_line_after_namespace' => true,
1111
'blank_line_after_opening_tag' => true,
1212
'cast_spaces' => true,
13+
'combine_nested_dirname' => true,
1314
'concat_space' => ['spacing' => 'one'],
1415
'elseif' => true,
1516
'encoding' => true,
@@ -18,6 +19,7 @@ return Config::create()
1819
'function_to_constant' => true,
1920
'function_typehint_space' => true,
2021
'linebreak_after_opening_tag' => true,
22+
'list_syntax' => ['syntax' => 'short'],
2123
'logical_operators' => true,
2224
'lowercase_cast' => true,
2325
'lowercase_constants' => true,
@@ -43,6 +45,8 @@ return Config::create()
4345
'no_unused_imports' => true,
4446
'no_whitespace_before_comma_in_array' => true,
4547
'no_whitespace_in_blank_line' => true,
48+
'non_printable_character' => true,
49+
'normalize_index_brace' => true,
4650
'object_operator_without_whitespace' => true,
4751
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
4852
'phpdoc_align' => true,
@@ -69,6 +73,8 @@ return Config::create()
6973
'switch_case_space' => true,
7074
'trailing_comma_in_multiline_array' => true,
7175
'trim_array_spaces' => true,
76+
'visibility_required' => true,
77+
'void_return' => true,
7278
'whitespace_after_comma_in_array' => true,
7379
])
7480
->setRiskyAllowed(true)

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ sudo: false
44

55
matrix:
66
include:
7-
- php: 7.0
8-
- php: 7.1
97
- php: 7.2
8+
- php: 7.3
109
fast_finish: true
1110

1211
services:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
]
1616
},
1717
"require": {
18-
"php": ">=7.0.0"
18+
"php": ">=7.2.0"
1919
},
2020
"require-dev": {
21-
"mockery/mockery": "^1.0",
22-
"phpunit/phpunit": "^6.5.0"
21+
"phpunit/phpunit": "^8.0",
22+
"mockery/mockery": "^1.2"
2323
},
2424
"extra": {
2525
"branch-alias": {

tests/unit/HelpersTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class HelpersTest extends PHPUnitTestCase
2525
/**
2626
*
2727
*/
28-
public function testApp()
28+
public function testApp(): void
2929
{
3030
$mock = Mockery::mock('alias:mako\application\Application');
3131

@@ -39,7 +39,7 @@ public function testApp()
3939
/**
4040
*
4141
*/
42-
public function testContainer()
42+
public function testContainer(): void
4343
{
4444
$mock = Mockery::mock('alias:mako\application\Application');
4545

@@ -55,7 +55,7 @@ public function testContainer()
5555
/**
5656
*
5757
*/
58-
public function testConfig()
58+
public function testConfig(): void
5959
{
6060
$mock = Mockery::mock('alias:mako\application\Application');
6161

@@ -71,7 +71,7 @@ public function testConfig()
7171
/**
7272
*
7373
*/
74-
public function testRequest()
74+
public function testRequest(): void
7575
{
7676
$mock = Mockery::mock('alias:mako\application\Application');
7777

@@ -91,7 +91,7 @@ public function testRequest()
9191
/**
9292
*
9393
*/
94-
public function testCookie()
94+
public function testCookie(): void
9595
{
9696
$mock = Mockery::mock('alias:mako\application\Application');
9797

@@ -117,7 +117,7 @@ public function testCookie()
117117
/**
118118
*
119119
*/
120-
public function testSignedCookie()
120+
public function testSignedCookie(): void
121121
{
122122
$mock = Mockery::mock('alias:mako\application\Application');
123123

@@ -143,7 +143,7 @@ public function testSignedCookie()
143143
/**
144144
*
145145
*/
146-
public function testI18n()
146+
public function testI18n(): void
147147
{
148148
$mock = Mockery::mock('alias:mako\application\Application');
149149

@@ -163,7 +163,7 @@ public function testI18n()
163163
/**
164164
*
165165
*/
166-
public function testHumanizer()
166+
public function testHumanizer(): void
167167
{
168168
$mock = Mockery::mock('alias:mako\application\Application');
169169

@@ -183,7 +183,7 @@ public function testHumanizer()
183183
/**
184184
*
185185
*/
186-
public function testUrl()
186+
public function testUrl(): void
187187
{
188188
$mock = Mockery::mock('alias:mako\application\Application');
189189

@@ -203,7 +203,7 @@ public function testUrl()
203203
/**
204204
*
205205
*/
206-
public function testPusher()
206+
public function testPusher(): void
207207
{
208208
$mock = Mockery::mock('alias:mako\application\Application');
209209

@@ -227,7 +227,7 @@ public function testPusher()
227227
/**
228228
*
229229
*/
230-
public function testSession()
230+
public function testSession(): void
231231
{
232232
$mock = Mockery::mock('alias:mako\application\Application');
233233

@@ -247,7 +247,7 @@ public function testSession()
247247
/**
248248
*
249249
*/
250-
public function testFlash()
250+
public function testFlash(): void
251251
{
252252
$mock = Mockery::mock('alias:mako\application\Application');
253253

@@ -271,7 +271,7 @@ public function testFlash()
271271
/**
272272
*
273273
*/
274-
public function testToken()
274+
public function testToken(): void
275275
{
276276
$mock = Mockery::mock('alias:mako\application\Application');
277277

@@ -295,7 +295,7 @@ public function testToken()
295295
/**
296296
*
297297
*/
298-
public function testOneTimeToken()
298+
public function testOneTimeToken(): void
299299
{
300300
$mock = Mockery::mock('alias:mako\application\Application');
301301

@@ -319,7 +319,7 @@ public function testOneTimeToken()
319319
/**
320320
*
321321
*/
322-
public function testGatekeeper()
322+
public function testGatekeeper(): void
323323
{
324324
$mock = Mockery::mock('alias:mako\application\Application');
325325

@@ -343,7 +343,7 @@ public function testGatekeeper()
343343
/**
344344
*
345345
*/
346-
public function testUser()
346+
public function testUser(): void
347347
{
348348
$mock = Mockery::mock('alias:mako\application\Application');
349349

0 commit comments

Comments
 (0)