Skip to content

Commit

Permalink
Merge pull request #372 from crynobone/patch-1
Browse files Browse the repository at this point in the history
Supports Laravel 12
  • Loading branch information
freekmurze authored Feb 5, 2025
2 parents c246f17 + 527ba85 commit 0d890fa
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.4, 8.3, 8.2, 8.1, 8.0, 7.4]
laravel: [11.*, 10.*, 9.*, 8.*, 7.*]
laravel: [12.*, 11.*, 10.*, 9.*, 8.*, 7.*]
dependency-version: [prefer-stable]
include:
- laravel: 12.*
testbench: 10.*
rector: 2.*
- laravel: 11.*
testbench: 9.*
rector: 2.*
Expand All @@ -29,6 +32,12 @@ jobs:
testbench: 5.*
rector: 0.19.*
exclude:
- laravel: 12.*
php: 8.1
- laravel: 12.*
php: 8.0
- laravel: 12.*
php: 7.4
- laravel: 11.*
php: 8.1
- laravel: 11.*
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
"php": "^7.4 || ^8.0",
"ext-json": "*",
"composer-runtime-api": "^2.2",
"illuminate/contracts": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0",
"illuminate/database": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0",
"illuminate/queue": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0",
"illuminate/support": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0",
"illuminate/contracts": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"illuminate/database": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"illuminate/queue": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"illuminate/support": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"spatie/backtrace": "^1.7.1",
"spatie/ray": "^1.41.3",
"symfony/stopwatch": "4.2 || ^5.1 || ^6.0 || ^7.0",
"zbateson/mail-mime-parser": "^1.3.1 || ^2.0 || ^3.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.3",
"laravel/framework": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0",
"orchestra/testbench-core": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"pestphp/pest": "^1.22 || ^2.0",
"laravel/framework": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"orchestra/testbench-core": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"pestphp/pest": "^1.22 || ^2.0 || ^3.0",
"phpstan/phpstan": "^1.10.57 || ^2.0.2",
"phpunit/phpunit": "^9.3 || ^10.1 || ^11.0.10",
"rector/rector": "^0.19.2 || ^1.0.1 || ^2.0.0",
Expand Down
9 changes: 7 additions & 2 deletions tests/Unit/MarkdownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
assertMatchesOsSafeSnapshot($this->client->sentRequests());
})->skip(version_compare(version(), '2.0.0', '>='));


it('can render and send markdown for Pest 2', function () {
ray()->markdown('## Hello World!');

assertMatchesOsSafeSnapshot($this->client->sentRequests());
})->skip(version_compare(version(), '2.0.0', '<'));
})->skip(version_compare(version(), '2.0.0', '>=') || version_compare(version(), '3.0.0', '<'));

it('can render and send markdown for Pest 3', function () {
ray()->markdown('## Hello World!');

assertMatchesOsSafeSnapshot($this->client->sentRequests());
})->skip(version_compare(version(), '3.0.0', '<'));
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"uuid": "fakeUuid",
"payloads": [
{
"type": "custom",
"content": {
"content": "<style>a { text-decoration:underline!important; }</style><div class=\"w-100 block\" style=\"font-size:1.8em!important;\">Hello World!</div>",
"label": "Markdown"
},
"origin": {
"file": "/vendor/pestphp/pest/src/Factories/TestCaseMethodFactory.php",
"line_number": 168,
"hostname": "fake-hostname"
}
}
],
"meta": []
}
]

0 comments on commit 0d890fa

Please sign in to comment.