-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from prooph/refactor_test_suite
Refactoring tests
- Loading branch information
Showing
125 changed files
with
5,437 additions
and
7,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of `prooph/event-store-client`. | ||
* (c) 2018-2020 Alexander Miertsch <kontakt@codeliner.ws> | ||
* (c) 2018-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ProophTest\EventStoreClient; | ||
|
||
use Amp\PHPUnit\AsyncTestCase; | ||
use Amp\Promise; | ||
use Prooph\EventStore\Async\EventStoreConnection; | ||
use ProophTest\EventStoreClient\Helper\TestConnection; | ||
|
||
abstract class EventStoreConnectionTestCase extends AsyncTestCase | ||
{ | ||
protected EventStoreConnection $connection; | ||
|
||
protected function setUpAsync(): Promise | ||
{ | ||
$this->connection = TestConnection::create(); | ||
$this->connection->connectAsync(); | ||
|
||
return parent::setUpAsync(); | ||
} | ||
|
||
protected function tearDownAsync(): Promise | ||
{ | ||
$this->connection->close(); | ||
|
||
return parent::tearDownAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.