File tree 5 files changed +9
-5
lines changed
5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ test :
2
+ vendor/bin/phpunit --coverage-text
3
+ vendor/bin/phpcs --version && echo && vendor/bin/phpcs -p --standard=PSR2 --ignore=src/lang/,src/views/ src tests
Original file line number Diff line number Diff line change @@ -279,7 +279,8 @@ private function uploadValidator($file)
279
279
280
280
private function getNewName ($ file )
281
281
{
282
- $ new_file_name = $ this ->helper ->translateFromUtf8 (trim (pathinfo ($ file ->getClientOriginalName (), PATHINFO_FILENAME )));
282
+ $ new_file_name = $ this ->helper
283
+ ->translateFromUtf8 (trim (pathinfo ($ file ->getClientOriginalName (), PATHINFO_FILENAME )));
283
284
284
285
if (config ('lfm.rename_file ' ) === true ) {
285
286
$ new_file_name = uniqid ();
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function tearDown()
28
28
parent ::tearDown ();
29
29
}
30
30
31
- public function test__Get ()
31
+ public function testMagicGet ()
32
32
{
33
33
$ this ->lfm_item = new LfmItem ($ this ->lfm_path , m::mock (Lfm::class));
34
34
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function tearDown()
18
18
parent ::tearDown ();
19
19
}
20
20
21
- public function test__Get ()
21
+ public function testMagicGet ()
22
22
{
23
23
$ storage = m::mock (LfmStorage::class);
24
24
@@ -34,7 +34,7 @@ public function test__Get()
34
34
$ this ->assertEquals ($ storage , $ path ->storage );
35
35
}
36
36
37
- public function test__Call ()
37
+ public function testMagicCall ()
38
38
{
39
39
$ storage = m::mock (LfmStorage::class);
40
40
$ storage ->shouldReceive ('foo ' )->andReturn ('bar ' );
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function tearDown()
38
38
m::close ();
39
39
}
40
40
41
- public function test__Call ()
41
+ public function testMagicCall ()
42
42
{
43
43
$ this ->assertEquals ('baz ' , $ this ->storage ->functionToCall ());
44
44
}
You can’t perform that action at this time.
0 commit comments