aatis/tester

There is no license information available for the latest version (1.3.0) of this package.

Test library of Aatis

1.3.0 2024-02-14 15:30 UTC

This package is auto-updated.

Last update: 2024-11-14 16:58:35 UTC


README

Package including a set of tools for testing.

Installation

composer require aatis/tester

Content

Common

Interfaces

  • WriterInterface
    • write(string message): void

Services

  • Writer
    • construct(string defaultMessage)
    • write(?string message = null): void
      • if message is null, write defaultMessage
      • else write message

ErrorHandler

Enums

  • ExtraExceptionCodeEnum
    • _30 = 'Extra Error'
    • _50 = 'Zebi Error'

EventDispatcher

Events

  • CustomEvent etxends Event

    • construct(string $message)
    • getMessage(): string
  • CustomStoppableEvent extends StoppableEvent

    • construct(string $message)
    • getMessage(): string

Listeners

  • CustomListener
    • __invoke(CustomStoppableEvent $event): void

Subscribers

  • CustomSubscriber
    • __construct(private readonly WriterInterface $writer)
    • custom(CustomEvent $event): void
    • customFirst(CustomStoppableEvent $event): void
    • customNever(CustomStoppableEvent $event): void
    • getSubscribedEvents(): iterable

TemplateRenderer

Enums

  • ExtraTemplateFileExtensionEnum
    • EXTRA = '.extra.php'
    • ZEBI = '.zebi'

Services

  • ExtraRenderer extends PhpRenderer

    • EXTENSION = ExtraTemplateFileExtensionEnum::EXTRA
  • ZebiRenderer extends PhpRenderer

    • EXTENSION = ExtraTemplateFileExtensionEnum::ZEBI