repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ItemAdded.php
tests/Unit/Fixture/ItemAdded.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('item_added')] final class ItemAdded { public function __construct( public string $productId, public int $quantity, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/WrongNormalizerEvent.php
tests/Unit/Fixture/WrongNormalizerEvent.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('wrong_normalizer')] final class WrongNormalizerEvent { public function __construct( #[EmailNormalizer] public bool $email, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/QueryAnsweringStaticProjection.php
tests/Unit/Fixture/QueryAnsweringStaticProjection.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Answer; final class QueryAnsweringStaticProjection { #[Answer] public static function answerQuery(QueryProfile $queryProfile): string { return 'found static'; } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithHandler.php
tests/Unit/Fixture/ProfileWithHandler.php
<?php // phpcs:ignoreFile declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Handle; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/OrderId.php
tests/Unit/Fixture/OrderId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; final class OrderId implements AggregateRootId { private function __construct( private string $id, ) { } public static function fromString(string $id...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithEmptyApply.php
tests/Unit/Fixture/ProfileWithEmptyApply.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileWithEmptyAppl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Profile.php
tests/Unit/Fixture/Profile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; use Patchlevel\EventSourcing\Attr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/CreateProfile.php
tests/Unit/Fixture/CreateProfile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class CreateProfile { public function __construct( public readonly ProfileId $id, public readonly string $name, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithSnapshot.php
tests/Unit/Fixture/ProfileWithSnapshot.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; use Patchlevel\EventSourcing\Attr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/NotNormalizedProfileCreated.php
tests/Unit/Fixture/NotNormalizedProfileCreated.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('not_normalized_profile_created')] final class NotNormalizedProfileCreated { public function __construct( public ProfileId $profileId, public Email $email, ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/PaymentConfirmed.php
tests/Unit/Fixture/PaymentConfirmed.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('payment_confirmed')] final class PaymentConfirmed { public function __construct() { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileVisited.php
tests/Unit/Fixture/ProfileVisited.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer; use Stringable; #[Event('profile_visited')] final class ProfileVisited implements Stringable { public function __co...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileEmailChanged.php
tests/Unit/Fixture/ProfileEmailChanged.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer; #[Event('profile_email_changed')] final class ProfileEmailChanged { public function __construct( #[IdNormal...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/MessageNormalizer.php
tests/Unit/Fixture/MessageNormalizer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Attribute; use Patchlevel\Hydrator\Normalizer\InvalidArgument; use Patchlevel\Hydrator\Normalizer\Normalizer; use function is_array; #[Attribute(Attribute::TARGET_PROPERTY)] final class MessageNormalizer implements Normalizer...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileCreated.php
tests/Unit/Fixture/ProfileCreated.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use JsonSerializable; use Patchlevel\EventSourcing\Attribute\Event; use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer; #[Event('profile_created')] final class ProfileCreated implements JsonSerializable { public f...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Email.php
tests/Unit/Fixture/Email.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class Email { private function __construct( private string $value, ) { } public static function fromString(string $value): self { return new self($value); } public function toStri...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/QueryProfile.php
tests/Unit/Fixture/QueryProfile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class QueryProfile { public function __construct( public readonly ProfileId $id, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/MessageId.php
tests/Unit/Fixture/MessageId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class MessageId { private function __construct( private string $id, ) { } public static function fromString(string $id): self { return new self($id); } public function toString():...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithBrokenId.php
tests/Unit/Fixture/ProfileWithBrokenId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileWithBrokenId::class)] final class ProfileWithBrokenId exten...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/EmailNormalizer.php
tests/Unit/Fixture/EmailNormalizer.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Attribute; use InvalidArgumentException; use Patchlevel\Hydrator\Normalizer\InvalidArgument; use Patchlevel\Hydrator\Normalizer\Normalizer; use function is_string; #[Attribute(Attribute::TARGET_PROPERTY)] final class EmailNor...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ChangeProfileName.php
tests/Unit/Fixture/ChangeProfileName.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Id; final class ChangeProfileName { public function __construct( #[Id] public readonly ProfileId $id, public readonly string $name, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithSuppressAll.php
tests/Unit/Fixture/ProfileWithSuppressAll.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Id; use Patchlevel\EventSourcing\Attribute\SuppressMissingApply; #[Aggregate(Profi...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ActivateProfile.php
tests/Unit/Fixture/ActivateProfile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Id; final class ActivateProfile { public function __construct( #[Id] public readonly ProfileId $id, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/EmptyEvent.php
tests/Unit/Fixture/EmptyEvent.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class EmptyEvent { }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/QueryAnsweringProjection.php
tests/Unit/Fixture/QueryAnsweringProjection.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Answer; final class QueryAnsweringProjection { #[Answer] public function answerQuery(QueryProfile $queryProfile): string { return 'found'; } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/MessageDeleted.php
tests/Unit/Fixture/MessageDeleted.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('message_deleted')] final class MessageDeleted { public function __construct( public MessageId $messageId, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithBrokenApplyNoType.php
tests/Unit/Fixture/ProfileWithBrokenApplyNoType.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileWithBrokenApp...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileInvalid.php
tests/Unit/Fixture/ProfileInvalid.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileInvalid::clas...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/SimpleEvent.php
tests/Unit/Fixture/SimpleEvent.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('simple')] final class SimpleEvent { public string|null $name = null; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithBrokenApplyIntersection.php
tests/Unit/Fixture/ProfileWithBrokenApplyIntersection.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use JsonSerializable; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Status.php
tests/Unit/Fixture/Status.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; enum Status: string { case Draft = 'draft'; case Pending = 'pending'; case Closed = 'closed'; }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithBrokenApplyMultipleApply.php
tests/Unit/Fixture/ProfileWithBrokenApplyMultipleApply.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileWithBrokenApp...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/BatchingSubscriber.php
tests/Unit/Fixture/BatchingSubscriber.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Subscribe; use Patchlevel\EventSourcing\Attribute\Subscriber; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Subscription\RunMode; use Patchlevel\EventSourcing\Subs...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithStream.php
tests/Unit/Fixture/ProfileWithStream.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; use Patchlevel\EventSourcing\Attr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/OtherQueryProfile.php
tests/Unit/Fixture/OtherQueryProfile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class OtherQueryProfile { public function __construct( public readonly ProfileId $id, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Payment.php
tests/Unit/Fixture/Payment.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicChildAggregate; use Patchlevel\EventSourcing\Attribute\Apply; final class Payment extends BasicChildAggregate { private bool $payed = false; public function confirmPayment(): vo...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Message.php
tests/Unit/Fixture/Message.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use DateTimeImmutable; use const DATE_ATOM; final class Message { private function __construct( private MessageId $messageId, private string $text, private DateTimeImmutable $createdAt, ) { } ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/NameChanged.php
tests/Unit/Fixture/NameChanged.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; final class NameChanged { public function __construct( public string $name, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/OrderCreated.php
tests/Unit/Fixture/OrderCreated.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; use Patchlevel\EventSourcing\Serializer\Normalizer\IdNormalizer; #[Event('order_created')] final class OrderCreated { public function __construct( #[IdNormalizer] p...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileWithBrokenApplyBothUsage.php
tests/Unit/Fixture/ProfileWithBrokenApplyBothUsage.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; #[Aggregate(ProfileWithBrokenApp...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/ProfileId.php
tests/Unit/Fixture/ProfileId.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; final class ProfileId implements AggregateRootId { private function __construct( private string $id, ) { } public static function fromString(string $...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/OrderItems.php
tests/Unit/Fixture/OrderItems.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Aggregate\BasicChildAggregate; use Patchlevel\EventSourcing\Attribute\Apply; final class OrderItems extends BasicChildAggregate { /** @var array<string, int> */ private array $items = []; ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/SplittingEvent.php
tests/Unit/Fixture/SplittingEvent.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; use Patchlevel\EventSourcing\Attribute\SplitStream; #[SplitStream] #[Event('splitting_event')] final class SplittingEvent { public function __construct( public Email $email...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/MessagePublished.php
tests/Unit/Fixture/MessagePublished.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture; use Patchlevel\EventSourcing\Attribute\Event; #[Event('message_published')] final class MessagePublished { public function __construct( public Message $message, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Header/BazHeader.php
tests/Unit/Fixture/Header/BazHeader.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture\Header; use Patchlevel\EventSourcing\Attribute\Header; /** @immutable */ #[Header('baz')] final class BazHeader { public function __construct( public readonly string $data, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Fixture/Header/FooHeader.php
tests/Unit/Fixture/Header/FooHeader.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Fixture\Header; use Patchlevel\EventSourcing\Attribute\Header; /** @immutable */ #[Header('foo')] final class FooHeader { public function __construct( public readonly string $data, ) { } }
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/CustomIdTest.php
tests/Unit/Aggregate/CustomIdTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use Patchlevel\EventSourcing\Aggregate\CustomId; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(CustomId::class)] final class CustomIdTest extends TestCase { public function testF...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/ApplyMethodNotFoundTest.php
tests/Unit/Aggregate/ApplyMethodNotFoundTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use Patchlevel\EventSourcing\Aggregate\ApplyMethodNotFound; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Profile; use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileCreated; use PHPUnit\Framework\Attributes\CoversClass; us...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/AggregateRootTest.php
tests/Unit/Aggregate/AggregateRootTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use Patchlevel\EventSourcing\Aggregate\AggregateRootAttributeBehaviour; use Patchlevel\EventSourcing\Aggregate\AggregateRootBehaviour; use Patchlevel\EventSourcing\Aggregate\AggregateRootIdNotSupported; use Patchlevel\EventSourci...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/UuidTest.php
tests/Unit/Aggregate/UuidTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use DateTimeInterface; use Patchlevel\EventSourcing\Aggregate\Uuid; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Ramsey\Uuid\Uuid as RamseyUuid; use Ramsey\Uuid\UuidFactory; use Ramsey\Uuid\Uu...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/AggregateRootIdNotSupportedTest.php
tests/Unit/Aggregate/AggregateRootIdNotSupportedTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use Patchlevel\EventSourcing\Aggregate\AggregateRootIdNotSupported; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Profile; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(AggregateRo...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/MetadataNotPossibleTest.php
tests/Unit/Aggregate/MetadataNotPossibleTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use Patchlevel\EventSourcing\Aggregate\MetadataNotPossible; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(MetadataNotPossible::class)] final class MetadataNotPossibleTest extends Tes...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Aggregate/AggregateHeaderTest.php
tests/Unit/Aggregate/AggregateHeaderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Aggregate; use DateTimeImmutable; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(AggregateHeader::class)] final class AggregateHeaderTest ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SetupTest.php
tests/Unit/Attribute/SetupTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Setup; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; use PHPUnit\Framework\TestCase; #[CoversClass(Setup::class)] final class Setu...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/ApplyTest.php
tests/Unit/Attribute/ApplyTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Profile; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Apply::class)] final class ApplyT...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SubscribeTest.php
tests/Unit/Attribute/SubscribeTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Subscribe; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Profile; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Subscribe::class)] final clas...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/EventTest.php
tests/Unit/Attribute/EventTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Event; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Event::class)] final class EventTest extends TestCase { public function testInstantiat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SuppressMissingApplyTest.php
tests/Unit/Attribute/SuppressMissingApplyTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\SuppressMissingApply; use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileCreated; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(SuppressMis...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SplitStreamTest.php
tests/Unit/Attribute/SplitStreamTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\SplitStream; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; use PHPUnit\Framework\TestCase; #[CoversClass(SplitStream::class)] fina...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/HeaderTest.php
tests/Unit/Attribute/HeaderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Header; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Header::class)] final class HeaderTest extends TestCase { public function testInstant...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/TeardownTest.php
tests/Unit/Attribute/TeardownTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Teardown; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; use PHPUnit\Framework\TestCase; #[CoversClass(Teardown::class)] final clas...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SubscriberTest.php
tests/Unit/Attribute/SubscriberTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Subscriber; use Patchlevel\EventSourcing\Subscription\RunMode; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Subscriber::class)] final class Su...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/SnapshotTest.php
tests/Unit/Attribute/SnapshotTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Snapshot; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Snapshot::class)] final class SnapshotTest extends TestCase { public function testI...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/IdTest.php
tests/Unit/Attribute/IdTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Id; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; use PHPUnit\Framework\TestCase; #[CoversClass(Id::class)] final class IdTest ext...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Attribute/AggregateTest.php
tests/Unit/Attribute/AggregateTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Attribute; use Patchlevel\EventSourcing\Attribute\Aggregate; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; #[CoversClass(Aggregate::class)] final class AggregateTest extends TestCase { public function te...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/DoctrineDbalStreamTest.php
tests/Unit/Store/DoctrineDbalStreamTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use ArrayIterator; use DateTimeImmutable; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Result; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\Ev...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/StreamDoctrineDbalStreamTest.php
tests/Unit/Store/StreamDoctrineDbalStreamTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use ArrayIterator; use DateTimeImmutable; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Result; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Message\Serializer\HeadersSerializer; use Pa...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/StreamDoctrineDbalStoreTest.php
tests/Unit/Store/StreamDoctrineDbalStoreTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use ArrayIterator; use Closure; use DateTimeImmutable; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Driver\PDO\Exception; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\DBAL\Platforms\AbstractPlatform...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
true
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/DoctrineDbalStoreTest.php
tests/Unit/Store/DoctrineDbalStoreTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use ArrayIterator; use Closure; use DateTimeImmutable; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Driver\PDO\Exception; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\DBAL\Platforms\AbstractPlatform...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
true
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/ReadOnlyStoreTest.php
tests/Unit/Store/ReadOnlyStoreTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use InvalidArgumentException; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Criteria\Criteria; use Patchlevel\EventSourcing\Store\ReadOnlyStore; use Patchlevel\EventSourcing\Store\Store; use Patchle...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/InMemoryStoreTest.php
tests/Unit/Store/InMemoryStoreTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use DateTimeImmutable; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Metadata\Event\EventRegistry; use Patchlevel\EventSourcing\Store\ArchivedHeader...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
true
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/ArrayStreamTest.php
tests/Unit/Store/ArrayStreamTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\ArrayStream; use Patchlevel\EventSourcing\Store\StreamClosed; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Email; use Patchlevel\EventSourcing\Tests\...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/StreamReadOnlyStoreTest.php
tests/Unit/Store/StreamReadOnlyStoreTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Store\Criteria\Criteria; use Patchlevel\EventSourcing\Store\ReadOnlyStore; use Patchlevel\EventSourcing\Store\StoreIsReadOnly; use Patchlevel\EventSourcing\St...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/Crtieria/CriteriaBuilderTest.php
tests/Unit/Store/Crtieria/CriteriaBuilderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store\Crtieria; use Patchlevel\EventSourcing\Store\Criteria\AggregateIdCriterion; use Patchlevel\EventSourcing\Store\Criteria\AggregateNameCriterion; use Patchlevel\EventSourcing\Store\Criteria\ArchivedCriterion; use Patchlevel\EventSourcin...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Store/Crtieria/CriteriaTest.php
tests/Unit/Store/Crtieria/CriteriaTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Store\Crtieria; use Patchlevel\EventSourcing\Store\Criteria\AggregateIdCriterion; use Patchlevel\EventSourcing\Store\Criteria\AggregateNameCriterion; use Patchlevel\EventSourcing\Store\Criteria\Criteria; use Patchlevel\EventSourcing\Store\C...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Repository/DefaultRepositoryTest.php
tests/Unit/Repository/DefaultRepositoryTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Repository; use DateTimeImmutable; use Patchlevel\EventSourcing\Aggregate\AggregateHeader; use Patchlevel\EventSourcing\EventBus\EventBus; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Metadata\Event\AttributeEv...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Repository/DefaultRepositoryManagerTest.php
tests/Unit/Repository/DefaultRepositoryManagerTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Repository; use Patchlevel\EventSourcing\EventBus\EventBus; use Patchlevel\EventSourcing\Metadata\AggregateRoot\AggregateRootClassNotRegistered; use Patchlevel\EventSourcing\Metadata\AggregateRoot\AggregateRootRegistry; use Patchlevel\Event...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Repository/MessageDecorator/SplitStreamDecoratorTest.php
tests/Unit/Repository/MessageDecorator/SplitStreamDecoratorTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Repository\MessageDecorator; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Metadata\Event\AttributeEventMetadataFactory; use Patchlevel\EventSourcing\Repository\MessageDecorator\SplitStreamDecorator; use Patchle...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/Repository/MessageDecorator/ChainMessageDecoratorTest.php
tests/Unit/Repository/MessageDecorator/ChainMessageDecoratorTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\Repository\MessageDecorator; use Patchlevel\EventSourcing\Message\Message; use Patchlevel\EventSourcing\Repository\MessageDecorator\ChainMessageDecorator; use Patchlevel\EventSourcing\Repository\MessageDecorator\MessageDecorator; use Patchl...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/AggregateHandlerProviderTest.php
tests/Unit/CommandBus/AggregateHandlerProviderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\CommandBus\AggregateHandlerProvider; use Patchlevel\EventSourcing\CommandBus\Handler\CreateAggregateHandler; use Patchlevel\EventSourcing\CommandBus\Handler\DefaultParameterResolver; use Patchlevel\E...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/SyncCommandBusTest.php
tests/Unit/CommandBus/SyncCommandBusTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\CommandBus\HandlerDescriptor; use Patchlevel\EventSourcing\CommandBus\HandlerNotFound; use Patchlevel\EventSourcing\CommandBus\HandlerProvider; use Patchlevel\EventSourcing\CommandBus\MultipleHandler...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/ChainHandlerProviderTest.php
tests/Unit/CommandBus/ChainHandlerProviderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\CommandBus\ChainHandlerProvider; use Patchlevel\EventSourcing\CommandBus\HandlerDescriptor; use Patchlevel\EventSourcing\CommandBus\HandlerProvider; use Patchlevel\EventSourcing\Tests\Unit\Fixture\Cr...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/HandlerDescriptorTest.php
tests/Unit/CommandBus/HandlerDescriptorTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\CommandBus\HandlerDescriptor; use Patchlevel\EventSourcing\Tests\Unit\Fixture\ProfileWithHandler; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\RequiresPhp; use PHPUn...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/ServiceHandlerProviderTest.php
tests/Unit/CommandBus/ServiceHandlerProviderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\Attribute\Handle; use Patchlevel\EventSourcing\CommandBus\ServiceHandlerProvider; use Patchlevel\EventSourcing\Tests\Unit\Fixture\CreateProfile; use PHPUnit\Framework\Attributes\CoversClass; use PHPU...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/ServiceLocatorTest.php
tests/Unit/CommandBus/ServiceLocatorTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\Clock\SystemClock; use Patchlevel\EventSourcing\CommandBus\ServiceLocator; use Patchlevel\EventSourcing\CommandBus\ServiceNotFound; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/InstantRetryCommandBusTest.php
tests/Unit/CommandBus/InstantRetryCommandBusTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\Attribute\InstantRetry; use Patchlevel\EventSourcing\CommandBus\CommandBus; use Patchlevel\EventSourcing\CommandBus\InstantRetryCommandBus; use Patchlevel\EventSourcing\Repository\AggregateOutdated; ...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/HandlerFinderTest.php
tests/Unit/CommandBus/HandlerFinderTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus; use Patchlevel\EventSourcing\Attribute\Handle; use Patchlevel\EventSourcing\CommandBus\HandlerFinder; use Patchlevel\EventSourcing\CommandBus\HandlerReference; use Patchlevel\EventSourcing\CommandBus\InvalidHandleMethod; use Pat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/Handler/UpdateAggregateHandlerTest.php
tests/Unit/CommandBus/Handler/UpdateAggregateHandlerTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus\Handler; use Patchlevel\EventSourcing\CommandBus\Handler\AggregateIdNotFound; use Patchlevel\EventSourcing\CommandBus\Handler\DefaultParameterResolver; use Patchlevel\EventSourcing\CommandBus\Handler\UpdateAggregateHandler; use P...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/Handler/CreateAggregateHandlerTest.php
tests/Unit/CommandBus/Handler/CreateAggregateHandlerTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus\Handler; use InvalidArgumentException; use Patchlevel\EventSourcing\CommandBus\Handler\CreateAggregateHandler; use Patchlevel\EventSourcing\CommandBus\Handler\DefaultParameterResolver; use Patchlevel\EventSourcing\Repository\Repo...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Unit/CommandBus/Handler/DefaultParameterResolverTest.php
tests/Unit/CommandBus/Handler/DefaultParameterResolverTest.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Unit\CommandBus\Handler; use Patchlevel\EventSourcing\Attribute\Inject; use Patchlevel\EventSourcing\CommandBus\Handler\DefaultParameterResolver; use Patchlevel\EventSourcing\CommandBus\Handler\ServiceNotResolvable; use Patchlevel\EventSourcing\...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SubscriptionEngineBatchBench.php
tests/Benchmark/SubscriptionEngineBatchBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Schema\ChainDoctrineSchemaConfigurator...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SimpleSetupBench.php
tests/Benchmark/SimpleSetupBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Schema\DoctrineSchemaDirector; use Pat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SnapshotsBench.php
tests/Benchmark/SnapshotsBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Schema\DoctrineSchemaDirector; use Pat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/blackfire.php
tests/Benchmark/blackfire.php
<?php declare(strict_types=1); use Doctrine\DBAL\Driver\PDO\SQLite\Driver; use Doctrine\DBAL\DriverManager; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Schema\DoctrineSchemaDirector; use Patchlevel\EventSourcing\Serializer\DefaultEventSerializer; use Patchlevel\EventSourcin...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SimpleSetupStreamStoreBench.php
tests/Benchmark/SimpleSetupStreamStoreBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repository; use Patchlevel\EventSourcing\Schema\DoctrineSchemaDirector; use Pat...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/CommandToQueryBench.php
tests/Benchmark/CommandToQueryBench.php
<?php declare(strict_types=1); namespace Benchmark; use Patchlevel\EventSourcing\Clock\SystemClock; use Patchlevel\EventSourcing\CommandBus\CommandBus; use Patchlevel\EventSourcing\CommandBus\ServiceLocator; use Patchlevel\EventSourcing\CommandBus\SyncCommandBus; use Patchlevel\EventSourcing\Metadata\AggregateRoot\A...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SubscriptionEngineBench.php
tests/Benchmark/SubscriptionEngineBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Metadata\Event\AttributeEventMetadataFactory; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repo...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/SplitStreamBench.php
tests/Benchmark/SplitStreamBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Metadata\Event\AttributeEventMetadataFactory; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Mess...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/PersonalDataBench.php
tests/Benchmark/PersonalDataBench.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark; use Patchlevel\EventSourcing\Aggregate\AggregateRootId; use Patchlevel\EventSourcing\Cryptography\DoctrineCipherKeyStore; use Patchlevel\EventSourcing\Repository\DefaultRepository; use Patchlevel\EventSourcing\Repository\Repository; u...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false
patchlevel/event-sourcing
https://github.com/patchlevel/event-sourcing/blob/183a44ce065b249fae92725ba5af56f01335ac88/tests/Benchmark/BasicImplementation/Profile.php
tests/Benchmark/BasicImplementation/Profile.php
<?php declare(strict_types=1); namespace Patchlevel\EventSourcing\Tests\Benchmark\BasicImplementation; use Patchlevel\EventSourcing\Aggregate\BasicAggregateRoot; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Apply; use Patchlevel\EventSourcing\Attribute\Id; use Patchlevel\E...
php
MIT
183a44ce065b249fae92725ba5af56f01335ac88
2026-01-05T02:54:16.927404Z
false