Add phpUnit testing for Amazon Incentives class

This commit is contained in:
2022-06-13 18:09:52 +09:00
parent 05b33ac157
commit 2bcd42f4a5
15 changed files with 1665 additions and 55 deletions

View File

@@ -0,0 +1,21 @@
<?php
// strip the final name from a to be mocked class
declare(strict_types=1);
namespace test\phpUnit\Hook;
use DG\BypassFinals;
use PHPUnit\Runner\BeforeFirstTestHook;
// only works if it is the FIRST load and not before EACH test
final class BypassFinalHook implements BeforeFirstTestHook
{
public function executeBeforeFirstTest(): void
{
BypassFinals::enable();
}
}
// __END__