Skip to content

Commit

Permalink
Merge pull request #13 from neos/task/move-tests
Browse files Browse the repository at this point in the history
TASK: Move tests into Unit/Integration subfolders
  • Loading branch information
bwaidelich authored Nov 7, 2023
2 parents b063c6a + 662ec30 commit bd2df7a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test:phpstan": "phpstan",
"test:cs": "phpcs --colors src",
"test:cs:fix": "phpcbf --colors src",
"test:unit": "phpunit",
"test:unit": "phpunit tests/Unit",
"test": [
"@test:phpstan",
"@test:cs",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests;
namespace Neos\EventStore\Tests\Integration;

use Neos\EventStore\CatchUp\CheckpointStorageInterface;
use Neos\EventStore\Exception\CheckpointException;
use Neos\EventStore\Model\Event\SequenceNumber;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\CoversNothing;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests;
namespace Neos\EventStore\Tests\Integration;

use Neos\EventStore\EventStoreInterface;
use Neos\EventStore\Exception\ConcurrencyException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\CatchUp;
namespace Neos\EventStore\Tests\Unit\CatchUp;


use Neos\EventStore\CatchUp\CatchUp;
use Neos\EventStore\CatchUp\CheckpointStorageInterface;
use Neos\EventStore\Helper\BatchEventStream;
use Neos\EventStore\Helper\InMemoryEventStream;
use Neos\EventStore\Model\Event;
use Neos\EventStore\Model\Event\EventData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\Helper;
namespace Neos\EventStore\Tests\Unit\Helper;

use Neos\EventStore\Helper\BatchEventStream;
use Neos\EventStore\Helper\InMemoryEventStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\Helper;
namespace Neos\EventStore\Tests\Unit\Helper;

use Neos\EventStore\Helper\ClosureEventStream;
use Neos\EventStore\Model\Event;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\Helper;
namespace Neos\EventStore\Tests\Unit\Helper;

use Neos\EventStore\CatchUp\CheckpointStorageInterface;
use Neos\EventStore\Helper\InMemoryCheckpointStorage;
use Neos\EventStore\Tests\AbstractCheckpointStorageTestBase;
use Neos\EventStore\Tests\Integration\AbstractCheckpointStorageTestBase;
use PHPUnit\Framework\Attributes\CoversClass;

#[CoversClass(InMemoryCheckpointStorage::class)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\Helper;
namespace Neos\EventStore\Tests\Unit\Helper;

use Neos\EventStore\EventStoreInterface;
use Neos\EventStore\Helper\InMemoryEventStore;
use Neos\EventStore\Tests\AbstractEventStoreTestBase;
use Neos\EventStore\Tests\Integration\AbstractEventStoreTestBase;
use PHPUnit\Framework\Attributes\CoversClass;

#[CoversClass(InMemoryEventStore::class)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
namespace Neos\EventStore\Tests\Helper;
namespace Neos\EventStore\Tests\Unit\Helper;

use Neos\EventStore\Helper\InMemoryEventStream;
use Neos\EventStore\Model\Event;
Expand All @@ -17,7 +17,8 @@
use PHPUnit\Framework\TestCase;

#[CoversClass(InMemoryEventStream::class)]
final class InMemoryEventStreamTest extends TestCase
final class
InMemoryEventStreamTest extends TestCase
{

public static function iteration_dataProvider(): \Generator
Expand Down

0 comments on commit bd2df7a

Please sign in to comment.