File tree 5 files changed +21
-48
lines changed
5 files changed +21
-48
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,13 @@ jobs:
11
11
fail-fast : true
12
12
matrix :
13
13
os : [ubuntu-20.04]
14
- php : [8.2, 8.1]
15
- laravel : [10.*, 9.* ]
14
+ php : [8.3, 8. 2, 8.1]
15
+ laravel : [10.*]
16
16
ffmpeg : [5.0, 4.4]
17
17
dependency-version : [prefer-lowest, prefer-stable]
18
18
include :
19
19
- laravel : 10.*
20
20
testbench : 8.*
21
- - laravel : 9.*
22
- testbench : 7.*
23
21
24
22
name : ${{ matrix.os }} - P${{ matrix.php }} - L${{ matrix.laravel }} - FF${{ matrix.ffmpeg }} - ${{ matrix.dependency-version }}
25
23
53
51
key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-dep-${{ matrix.dependency-version }}
54
52
55
53
- name : Execute tests
56
- run : vendor/bin/phpunit --stop-on-error --stop-on-failure --order-by random
57
- if : matrix.os == 'ubuntu-20.04'
54
+ run : vendor/bin/phpunit --order-by random
58
55
env :
59
56
FFMPEG_TEMPORARY_FILES_ROOT : ${{ github.workspace }}
60
57
FFMPEG_TEMPORARY_ENCRYPTED_HLS : /dev/shm
61
-
62
- - name : Execute tests
63
- run : vendor/bin/phpunit --stop-on-error --stop-on-failure --order-by random
64
- if : matrix.os == 'windows-2019'
65
- env :
66
- FFMPEG_TEMPORARY_FILES_ROOT : ${{ github.workspace }}
67
- FFMPEG_TEMPORARY_ENCRYPTED_HLS : ${{ github.workspace }}
Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"require" : {
23
- "php" : " ^8.1|^8.2" ,
24
- "illuminate/contracts" : " ^9.0|^ 10.0" ,
25
- "php-ffmpeg/php-ffmpeg" : " ^1.1 " ,
26
- "ramsey/collection" : " ^1.0|^ 2.0"
23
+ "php" : " ^8.1|^8.2|^8.3 " ,
24
+ "illuminate/contracts" : " ^10.0" ,
25
+ "php-ffmpeg/php-ffmpeg" : " ^1.2 " ,
26
+ "ramsey/collection" : " ^2.0"
27
27
},
28
28
"require-dev" : {
29
29
"league/flysystem-memory" : " ^3.10" ,
30
30
"mockery/mockery" : " ^1.4.4" ,
31
31
"nesbot/carbon" : " ^2.66" ,
32
- "orchestra/testbench" : " ^7.0|^ 8.0" ,
33
- "phpunit/phpunit" : " ^9.5.10 " ,
32
+ "orchestra/testbench" : " ^8.0" ,
33
+ "phpunit/phpunit" : " ^10.4 " ,
34
34
"spatie/image" : " ^2.2" ,
35
- "spatie/phpunit-snapshot-assertions" : " ^4.2 "
35
+ "spatie/phpunit-snapshot-assertions" : " ^5.0 "
36
36
},
37
37
"autoload" : {
38
38
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit bootstrap =" vendor/autoload.php"
3
- backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- colors =" true"
6
- verbose =" true"
7
- convertErrorsToExceptions =" true"
8
- convertNoticesToExceptions =" true"
9
- convertWarningsToExceptions =" true"
10
- processIsolation =" false"
11
- stopOnFailure =" false" >
3
+ backupGlobals =" false"
4
+ colors =" true"
5
+ processIsolation =" false"
6
+ stopOnFailure =" false" >
12
7
<testsuites >
13
8
<testsuite name =" FFMpeg Test Suite" >
14
9
<directory >tests</directory >
15
10
</testsuite >
16
11
</testsuites >
17
- <filter >
18
- <whitelist >
19
- <directory suffix =" .php" >src/</directory >
20
- </whitelist >
21
- </filter >
22
- <logging >
23
- <log type =" tap" target =" build/report.tap" />
24
- <log type =" junit" target =" build/report.junit.xml" />
25
- <log type =" coverage-html" target =" build/coverage" charset =" UTF-8" yui =" true" highlight =" true" />
26
- <log type =" coverage-text" target =" build/coverage.txt" />
27
- <log type =" coverage-clover" target =" build/logs/clover.xml" />
28
- </logging >
29
- </phpunit >
12
+ </phpunit >
Original file line number Diff line number Diff line change 15
15
use ProtoneMedia \LaravelFFMpeg \Filters \WatermarkFactory ;
16
16
use ProtoneMedia \LaravelFFMpeg \MediaOpener ;
17
17
18
- class AddFilter extends TestCase
18
+ class AddFilterTest extends TestCase
19
19
{
20
20
/** @test */
21
21
public function it_can_add_a_filter_using_a_closure ()
Original file line number Diff line number Diff line change 10
10
11
11
class TileTest extends TestCase
12
12
{
13
+ public static function provideThumbnailAmount ()
14
+ {
15
+ return array_map (fn ($ i ) => [$ i ], range (1 , 10 ));
16
+ }
17
+
13
18
/** @test */
14
19
public function it_has_a_tile_filter ()
15
20
{
@@ -94,11 +99,6 @@ public function it_can_generate_thumbnails_with_a_specified_quality()
94
99
);
95
100
}
96
101
97
- public function provideThumbnailAmount ()
98
- {
99
- return array_map (fn ($ i ) => [$ i ], range (1 , 10 ));
100
- }
101
-
102
102
/** @test */
103
103
public function it_has_a_tile_filter_and_can_store_the_vtt_file ()
104
104
{
You can’t perform that action at this time.
0 commit comments