diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index 9ee6db7..2dc2aee 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -4,9 +4,6 @@ name: "Check Coding Standard" on: pull_request: - branches-ignore: - - "[0-9]+.[0-9]+.x" - - "renovate/*" push: branches: - "[0-9]+.[0-9]+.x" diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index 267354f..c1fa595 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -4,9 +4,6 @@ name: "Mutation tests" on: pull_request: - branches-ignore: - - "[0-9]+.[0-9]+.x" - - "renovate/*" push: branches: - "[0-9]+.[0-9]+.x" diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index be65f77..67be957 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -4,9 +4,6 @@ name: "Static Analysis by PHPStan" on: pull_request: - branches-ignore: - - "[0-9]+.[0-9]+.x" - - "renovate/*" push: branches: - "[0-9]+.[0-9]+.x" diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index cc9c9de..f28e9b2 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -4,9 +4,6 @@ name: "Static Analysis by Psalm" on: pull_request: - branches-ignore: - - "[0-9]+.[0-9]+.x" - - "renovate/*" push: branches: - "[0-9]+.[0-9]+.x" diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index f186c7c..f1d7294 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -3,14 +3,11 @@ name: "Unit tests" on: - pull_request: - branches-ignore: - - "[0-9]+.[0-9]+.x" - - "renovate/*" - push: - branches: - - "[0-9]+.[0-9]+.x" - - "renovate/*" + pull_request: + push: + branches: + - "[0-9]+.[0-9]+.x" + - "renovate/*" jobs: phpunit: diff --git a/tests/Benchmark/HydratorBench.php b/tests/Benchmark/HydratorBench.php index 4e8ae69..704ca88 100644 --- a/tests/Benchmark/HydratorBench.php +++ b/tests/Benchmark/HydratorBench.php @@ -15,10 +15,13 @@ final class HydratorBench { private Hydrator $hydrator; - public function setUp(): void + public function __construct() { $this->hydrator = new MetadataHydrator(); + } + public function setUp(): void + { $object = $this->hydrator->hydrate(ProfileCreated::class, [ 'profileId' => '1', 'name' => 'foo', @@ -45,7 +48,7 @@ public function benchExtract1Object(): void } #[Bench\Revs(10)] - public function benchHydrate1_000Objects(): void + public function benchHydrate1000Objects(): void { for ($i = 0; $i < 1_000; $i++) { $this->hydrator->hydrate(ProfileCreated::class, [ @@ -56,7 +59,7 @@ public function benchHydrate1_000Objects(): void } #[Bench\Revs(10)] - public function benchExtract1_000Objects(): void + public function benchExtract1000Objects(): void { $object = new ProfileCreated(ProfileId::fromString('1'), 'foo'); @@ -66,7 +69,7 @@ public function benchExtract1_000Objects(): void } #[Bench\Revs(10)] - public function benchHydrate1_000_000Objects(): void + public function benchHydrate1000000Objects(): void { for ($i = 0; $i < 1_000_000; $i++) { $this->hydrator->hydrate(ProfileCreated::class, [ @@ -77,7 +80,7 @@ public function benchHydrate1_000_000Objects(): void } #[Bench\Revs(10)] - public function benchExtract1_000_000Objects(): void + public function benchExtract1000000Objects(): void { $object = new ProfileCreated(ProfileId::fromString('1'), 'foo');