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
2 changes: 1 addition & 1 deletion .github/workflows/code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/var/
!/var/.gitkeep
.phpunit.result.cache
.phpunit.cache

composer.lock
clover.xml
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/RollbarExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testConfigVars(string $var, array $expected, array $loadParamete
/**
* Data provider generatorConfigVars.
*/
public function generatorConfigVars(): array
public static function generatorConfigVars(): array
{
return [
['rollbar.config', ['enabled' => true]],
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/App/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:

framework:
test: true
secret: "%secret%"
secret: "%secret%"
router:
resource: "%kernel.project_dir%/config/routing.yml"
strict_requirements: ~
42 changes: 0 additions & 42 deletions Tests/Fixtures/ErrorHandler.php

This file was deleted.

2 changes: 1 addition & 1 deletion Tests/Payload/ErrorItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testInvoke(int $code, string $message, string $file, int $line,
*
* @throws \Exception
*/
public function generateInvoke(): array
public static function generateInvoke(): array
{
return [
[E_ERROR, 'Error message - ' . microtime(true), __FILE__, random_int(1, 100), 'E_ERROR'],
Expand Down
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,24 @@
},
"autoload-dev": {
"files": [
"Tests/Fixtures/App/AppKernel.php",
"Tests/Fixtures/ErrorHandler.php"
"Tests/Fixtures/App/AppKernel.php"
],
"psr-4": { "Tests\\": "Tests/"}
},
"require": {
"php": ">=8.0.2",
"rollbar/rollbar": "^3.1",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/monolog-bundle": "^3.0",
"symfony/serializer": "^5.4|^6.0",
"rollbar/rollbar": "^3.1|^4.0",
"symfony/dependency-injection": "^5.4|^6.2",
"symfony/config": "^5.4|^6.2",
"symfony/http-kernel": "^5.4|^6.2",
"symfony/monolog-bundle": "^3.8",
"symfony/serializer": "^5.4|^6.2",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/framework-bundle": "^5.4|^6.0",
"squizlabs/php_codesniffer": "^3.6",
"phpunit/phpunit": "^9.6|^10.1",
"symfony/framework-bundle": "^5.4|^6.2",
"squizlabs/php_codesniffer": "^3.7",
"matthiasnoback/symfony-dependency-injection-test": "^4.3"
},
"scripts": {
Expand Down
17 changes: 11 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" convertErrorsToExceptions="false" bootstrap="vendor/autoload.php">
<coverage>
<include>
<directory>./</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache">
<coverage/>
<php>
<ini name="error_reporting" value="-1"/>
<server name="APP_ENV" value="test" force="true"/>
Expand All @@ -20,4 +20,9 @@
<directory>Tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./</directory>
</include>
</source>
</phpunit>