Skip to content
Merged
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
10 changes: 2 additions & 8 deletions .github/workflows/.github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ on:
jobs:
phpunit:
strategy:
fail-fast: false
matrix:
version: ['8.1', '8.2']
version: ['8.1', '8.2', '8.3', '8.4']
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -49,10 +50,3 @@ jobs:
run: |
export CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'

- name: Upload log artifacts
uses: actions/upload-artifact@v2
with:
name: logs
path: ~/storage/logs
retention-days: 3
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [5.0.2] - 26-02-2025
- Laravel 12 compatibility
- Update phpunit configuration
## [5.0.1] - 13-03-2024
- Laravel 11 compatibility
## [5.0.0] - 01-05-2023
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"minimum-stability": "dev",
"require": {
"php": "^8.1",
"illuminate/support": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/session": "^10.0|^11.0"
"illuminate/support": "^10.0|^11.0|^12.0",
"illuminate/database": "^10.0|^11.0|^12.0",
"illuminate/contracts": "^10.0|^11.0|^12.0",
"illuminate/session": "^10.0|^11.0|^12.0"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^9.0|^10.5"
"orchestra/testbench": "^8.0|^9.0|^10.0",
"phpunit/phpunit": "^9.0|^10.5|^11.5.3"
},
"autoload": {
"psr-4": {
Expand Down
57 changes: 27 additions & 30 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false" bootstrap="vendor/autoload.php"
colors="true" processIsolation="false"
stopOnFailure="false"
verbose="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Laralabs Toaster Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src</directory>
<exclude>
<directory>vendor</directory>
<directory>tests</directory>
</exclude>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="APP_KEY" value="aLwEwCKN58IdVrWv8GQv/XEN+1IEVmHxAxYS129S8oc="/>
</php>
<testsuites>
<testsuite name="Laralabs Toaster Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="APP_KEY" value="aLwEwCKN58IdVrWv8GQv/XEN+1IEVmHxAxYS129S8oc="/>
</php>
<source>
<include>
<directory>src</directory>
</include>
<exclude>
<directory>vendor</directory>
<directory>tests</directory>
</exclude>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions src/Toaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ public function speed(int $value)
/**
* Add a message to the toaster.
*
* @param $message string
* @param $title null|string
* @param $message string
* @param $title null|string
* @param $properties null|array
*
* @throws \Exception
Expand Down