events/Tests/ProphecyTrait.php
Daniel Siepmann a9f3f108e3
BREAKING: Change of vendor/namespace (#43)
The vendor was renamed from `wrm` to `werkraummedia`.
And the namespace vendor was renamed from `Wrm` to `WerkraumMedia`.

That way all references to PHP classes as well as the package name
itself need to be adjusted.
2023-11-09 10:27:43 +01:00

18 lines
471 B
PHP

<?php
namespace WerkraumMedia\Events\Tests;
// Remove once PHP Unit < 9 is dropped (when PHP version support is dropped)
// Only needed to circumvent deprecation notice of not using ProphecyTrait in PHPUnit 9.
// Trait is not available for older PHP versions, so can't be loaded.
if (trait_exists(\Prophecy\PhpUnit\ProphecyTrait::class)) {
trait ProphecyTrait
{
use \Prophecy\PhpUnit\ProphecyTrait;
}
} else {
trait ProphecyTrait
{
}
}