Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency phpunit/phpunit to v11 #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"orchestra/testbench": "^5.0|^6.0",
"pestphp/pest": "^1.0",
"pestphp/pest-plugin-laravel": "^1.0",
"phpunit/phpunit": "^8.0|^9.3",
"phpunit/phpunit": "11.0.1",
"vlucas/phpdotenv": "^4.2|^5.3"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionHasCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionHasCompleted
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionHasError.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionHasError
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionHasInputInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionHasInputInformation
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionHasNewWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionHasNewWarning
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionHasStatusUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionHasStatusUpdate
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionIsProgressing.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionIsProgressing
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Events/ConversionQueueHop.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConversionQueueHop
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/IncomingWebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public function __invoke()
}

/**
* @param $status
* @param $message
* @param $status
* @param $message
*
* @throws \Exception
*/
Expand Down
1 change: 1 addition & 0 deletions src/Models/MediaConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion wherePercentageCompleted($value)
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereUpdatedAt($value)
*
* @mixin \Eloquent
*/
class MediaConversion extends Model
Expand Down
20 changes: 10 additions & 10 deletions tests/MediaConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@
$this->assertEquals($response['Job']['Id'], $jobId);
});

it('can successfully cancel a job', function () {
$job = MediaConvert::createJob($this->jobSettings, []);
it('can successfully cancel a job', function () {
$job = MediaConvert::createJob($this->jobSettings, []);

$response = MediaConvert::cancelJob($job['Job']['Id']);
$response = MediaConvert::cancelJob($job['Job']['Id']);

$this->assertEquals($response['@metadata']['statusCode'], 202);
});
$this->assertEquals($response['@metadata']['statusCode'], 202);
});

it('can successfully list jobs', function () {
$response = MediaConvert::listJobs([]);
it('can successfully list jobs', function () {
$response = MediaConvert::listJobs([]);

$this->assertEquals($response['@metadata']['statusCode'], 200);
$this->assertTrue(count($response) > 0);
});
$this->assertEquals($response['@metadata']['statusCode'], 200);
$this->assertTrue(count($response) > 0);
});
Loading