Skip to content

Commit 5a692ea

Browse files
committed
Bugs and Performance tests fixed
1 parent 3bfd93c commit 5a692ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+209
-110
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.phpbench
12
.phpunit.result.cache
23
.travis/phar-private.pem
34
jose.phar

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"matthiasnoback/symfony-config-test": "^3.1|^4.0",
8282
"nyholm/psr7": "^1.3",
8383
"php-http/mock-client": "^1.0",
84+
"phpbench/phpbench": "^1.2",
8485
"phpstan/extension-installer": "^1.1",
8586
"phpstan/phpstan": "^1.0",
8687
"phpstan/phpstan-deprecation-rules": "^1.0",
@@ -127,7 +128,6 @@
127128
"web-token/jwt-encryption-algorithm-experimental": "self.version",
128129
"web-token/signature-pack": "self.version",
129130
"web-token/encryption-pack": "self.version"
130-
131131
},
132132
"suggest":{
133133
"ext-sodium": "Sodium is required for OKP key creation, EdDSA signature algorithm and ECDH-ES key encryption with OKP keys",

ecs.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@
111111
$parameters
112112
->set(Option::PARALLEL, true)
113113
->set(Option::PATHS, [__DIR__])
114-
->set(Option::SKIP, [
115-
__DIR__ . '/src/Kernel.php',
116-
__DIR__ . '/assets',
117-
__DIR__ . '/bin',
118-
__DIR__ . '/config',
119-
__DIR__ . '/heroku',
120-
__DIR__ . '/public',
121-
__DIR__ . '/var',
122-
])
114+
->set(Option::SKIP, [__DIR__ . '/.github', __DIR__ . '/var', __DIR__ . '/vendor'])
123115
;
124116
};

performance/JWE/A128GCMKWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "GCMKW", "A128GCMKW"})

performance/JWE/A128KWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "KW", "A128KW"})

performance/JWE/A192GCMKWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "GCMKW", "A192GCMKW"})

performance/JWE/A192KWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "KW", "A192KW"})

performance/JWE/A256GCMKWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "GCMKW", "A256GCMKW"})

performance/JWE/A256KWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(4096)
912
* @Groups({"JWE", "KW", "A256KW"})

performance/JWE/ECDHESA128KWBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Jose\Performance\JWE;
66

7+
use PhpBench\Benchmark\Metadata\Annotations\Groups;
8+
use PhpBench\Benchmark\Metadata\Annotations\Revs;
9+
710
/**
811
* @Revs(256)
912
* @Groups({"JWE", "ECDHES", "ECDHESKW", "ECDHESA128KW"})

0 commit comments

Comments
 (0)