Skip to content
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo: false
language: php

php:
- 8.0
- 7.4
- 7.3
- 7.2
Expand Down
2 changes: 1 addition & 1 deletion phive.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpunit" version="7" installed="7.5.20" location="./tools/phpunit" copy="false"/>
<phar name="phpunit" version="9" installed="9.5.0" location="./tools/phpunit" copy="false"/>
<phar name="hanneskod/readme-tester" version="1" installed="1.0.0-beta5" location="./tools/readme-tester" copy="false"/>
<phar name="phpstan" version="^0.12.14" installed="0.12.14" location="./tools/phpstan" copy="false"/>
</phive>
23 changes: 12 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<phpunit bootstrap="./tests/bootstrap.php">
<testsuites>
<testsuite name="default">
<directory suffix=".php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="default">
<directory suffix=".php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Iterator/ClassIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ClassIteratorTest extends \PHPUnit\Framework\TestCase
{
private static $sut;

public static function setupBeforeClass()
public static function setupBeforeClass(): void
{
MockFinder::setIterator(
new \ArrayIterator([
Expand Down