This repository was archived by the owner on Jun 10, 2024. It is now read-only.
File tree 4 files changed +39
-2
lines changed
4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ # name=$([ "$1" ] && echo "$1" || echo default)
6
+ version=" 7.4"
7
+ declare -a versions=(" 7.3" " 7.4" " 8.0" )
8
+
9
+ if [[ " ${versions[*]} " == * " $1 " * ]];
10
+ then
11
+ version=" $1 "
12
+ else
13
+ echo " PHP version '$1 ' is not supported."
14
+ IFS=' , ' ; echo " We suggest to select one of the following options: ${versions[*]} "
15
+ echo " Test will run using default version $version "
16
+ fi
17
+
18
+ echo $version
19
+
20
+ # for version in "${versions[@]}"
21
+ # do
22
+ docker run -it --rm \
23
+ -e " TERM=xterm-256color" \
24
+ -v " $PWD " :/usr/src \
25
+ -w /usr/src \
26
+ php:" $version " -cli-alpine \
27
+ vendor/bin/phpunit
28
+ # done
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " biscolab/laravel-recaptcha" ,
3
3
"description" : " Simple and painless Google reCAPTCHA package for Laravel framework" ,
4
- "version" : " 5.1 .0" ,
4
+ "version" : " 5.2 .0" ,
5
5
"license" : " MIT" ,
6
6
"type" : " library" ,
7
7
"keywords" : [
Original file line number Diff line number Diff line change @@ -383,4 +383,13 @@ protected function returnArray(): bool
383
383
384
384
return ($ this ->version == 'v3 ' );
385
385
}
386
+
387
+ /**
388
+ * @return string
389
+ */
390
+ public function getOnLoadCallback (): string
391
+ {
392
+
393
+ return "" ;
394
+ }
386
395
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function testSkipByIpAndReturnArrayReturnsDefaultArray()
131
131
/**
132
132
* @test
133
133
*/
134
- public function testSlipByIpReturnsValidResponse ()
134
+ public function testSkipByIpReturnsValidResponse ()
135
135
{
136
136
137
137
$ this ->setSkipByIp ($ this ->recaptcha_invisible , true );
You can’t perform that action at this time.
0 commit comments