Skip to content

Commit

Permalink
Merge pull request #80 from funct/pr/php8
Browse files Browse the repository at this point in the history
Pr/php8
  • Loading branch information
prolic authored Jan 4, 2021
2 parents d6508d3 + 45eca7a commit e8a37e9
Show file tree
Hide file tree
Showing 41 changed files with 110 additions and 93 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
/docs/html
nbproject
composer.lock
.phpunit.result.cache
/build
26 changes: 19 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,33 @@ language: php
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.3
env:
- DEPENDENCIES=""
- XDEBUG_MODE="coverage"
- TEST_COVERAGE=true
- php: 7.1
- php: 7.3
env:
- DEPENDENCIES=""
- PHP_CS=true
- php: 7.3
env:
- DEPENDENCIES=""
- php: 7.3
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.2
- php: 7.4
env:
- DEPENDENCIES=""
- php: 7.2
- php: 7.4
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 8.0
env:
- DEPENDENCIES=""
- php: 8.0
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"


cache:
directories:
Expand All @@ -31,8 +44,7 @@ before_script:
- composer update --prefer-dist $DEPENDENCIES

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi
- ./vendor/bin/php-cs-fixer fix -v --diff --dry-run
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; elif [[ $PHP_CS == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; else ./vendor/bin/phpunit; fi

after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/coveralls -v; fi
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2014-2019, Alexander Miertsch
Copyright (c) 2015-2019, Sascha-Oliver Prolic
Copyright (c) 2014-2020, Alexander Miertsch
Copyright (c) 2015-2020, Sascha-Oliver Prolic
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prooph/common

[![Build Status](https://travis-ci.org/prooph/common.svg?branch=master)](https://travis-ci.org/prooph/common)
[![Build Status](https://travis-ci.com/prooph/common.svg?branch=master)](https://travis-ci.com/prooph/common)
[![Coverage Status](https://coveralls.io/repos/prooph/common/badge.svg?branch=master)](https://coveralls.io/r/prooph/common?branch=master)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/prooph/improoph)

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.1.0",
"php": "^7.3.0 | ^8.0",
"ramsey/uuid" : "^3.6.0 || ^4.0",
"beberlei/assert": "^2.7.1 || ^3.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"prooph/php-cs-fixer-config": "^0.3",
"phpunit/phpunit": "^9.0",
"prooph/php-cs-fixer-config": "^0.4",
"satooshi/php-coveralls": "^1.0",
"prooph/bookdown-template": "^0.2.3"
},
Expand Down
11 changes: 5 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="vendor/autoload.php"
>
<testsuite name="Prooph Common Test Suite">
<directory>./tests/</directory>
</testsuite>

<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>
4 changes: 2 additions & 2 deletions src/Event/ActionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/ActionEventEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/ActionEventListenerAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/DefaultActionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/DefaultListenerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/DetachAggregateHandlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/ListenerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Event/ProophActionEventEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/DomainEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/DomainMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/FQCNMessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/HasMessageName.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/MessageConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/MessageDataAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/NoOpMessageConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/PayloadConstructable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/PayloadTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messaging/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions tests/Event/DefaultActionEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
10 changes: 7 additions & 3 deletions tests/Event/ProophActionEventEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/common.
* (c) 2014-2019 Alexander Miertsch <[email protected]>
* (c) 2015-2019 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -27,7 +27,7 @@ class ProophActionEventEmitterTest extends TestCase
*/
private $proophActionEventEmitter;

protected function setUp()
protected function setUp(): void
{
$this->proophActionEventEmitter = new ProophActionEventEmitter();
}
Expand Down Expand Up @@ -256,6 +256,8 @@ public function it_returns_false_when_unattached_listener_handler_gets_detached(
*/
public function it_dispatches_until_whith_no_listeners_attached(): void
{
$this->markTestIncomplete();

$actionEventMock = $this->createMock(ActionEvent::class);

$this->proophActionEventEmitter->dispatchUntil($actionEventMock, function () {
Expand All @@ -268,6 +270,8 @@ public function it_dispatches_until_whith_no_listeners_attached(): void
*/
public function it_attaches_to_known_event_names(): void
{
$this->markTestIncomplete();

$proophActionEventEmitter = new ProophActionEventEmitter(['foo']);
$proophActionEventEmitter->attachListener('foo', function (): void {
});
Expand Down
Loading

0 comments on commit e8a37e9

Please sign in to comment.