Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 3aa627e

Browse files
author
Dominik Zogg
committed
chubbyphp-mock-2.x
1 parent 0a82ba4 commit 3aa627e

12 files changed

+655
-565
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A simple deserialization.
2626
## Requirements
2727

2828
* php: ^8.2
29-
* chubbyphp/chubbyphp-decode-encode: ^1.1
29+
* chubbyphp/chubbyphp-decode-encode: ^1.2
3030
* psr/http-message: ^1.1|^2.0
3131
* psr/log: ^2.0|^3.0.2
3232

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@
1414
"ext-dom": "*",
1515
"ext-json": "*",
1616
"ext-mbstring": "*",
17-
"chubbyphp/chubbyphp-decode-encode": "^1.1",
17+
"chubbyphp/chubbyphp-decode-encode": "^1.2",
1818
"psr/http-message": "^1.1|^2.0",
1919
"psr/log": "^2.0|^3.0.2"
2020
},
2121
"require-dev": {
22-
"chubbyphp/chubbyphp-container": "^2.2",
22+
"chubbyphp/chubbyphp-container": "^2.3",
2323
"chubbyphp/chubbyphp-dev-helper": "dev-master",
24-
"chubbyphp/chubbyphp-laminas-config-factory": "^1.3",
25-
"chubbyphp/chubbyphp-mock": "^1.8",
24+
"chubbyphp/chubbyphp-laminas-config-factory": "^1.4",
25+
"chubbyphp/chubbyphp-mock": "^2.0@dev",
2626
"doctrine/collections": "^2.2.2",
2727
"doctrine/persistence": "^4.0",
28-
"infection/infection": "^0.29.8",
28+
"infection/infection": "^0.29.13",
2929
"php-coveralls/php-coveralls": "^2.7.0",
3030
"phpstan/extension-installer": "^1.4.3",
31-
"phpstan/phpstan": "^2.0.3",
32-
"phpunit/phpunit": "^11.5.0",
31+
"phpstan/phpstan": "^2.1.6",
32+
"phpunit/phpunit": "^11.5.10",
3333
"pimple/pimple": "^3.5",
3434
"psr/container": "^2.0.2",
3535
"symfony/config": "^5.4.46|^6.4.14|^7.2",
36-
"symfony/dependency-injection": "^5.4.46|^6.4.14|^7.2"
36+
"symfony/dependency-injection": "^5.4.48|^6.4.19|^7.2"
3737
},
3838
"autoload": {
3939
"psr-4": { "Chubbyphp\\Deserialization\\": "src/" }

tests/Unit/Denormalizer/CallbackFieldDenormalizerTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
use Chubbyphp\Deserialization\Denormalizer\CallbackFieldDenormalizer;
88
use Chubbyphp\Deserialization\Denormalizer\DenormalizerContextInterface;
99
use Chubbyphp\Deserialization\Denormalizer\DenormalizerInterface;
10-
use Chubbyphp\Mock\MockByCallsTrait;
11-
use PHPUnit\Framework\MockObject\MockObject;
10+
use Chubbyphp\Mock\MockObjectBuilder;
1211
use PHPUnit\Framework\TestCase;
1312

1413
/**
@@ -18,8 +17,6 @@
1817
*/
1918
final class CallbackFieldDenormalizerTest extends TestCase
2019
{
21-
use MockByCallsTrait;
22-
2320
public function testDenormalizeField(): void
2421
{
2522
$object = new class {
@@ -38,8 +35,10 @@ public function setName(string $name): self
3835
}
3936
};
4037

41-
/** @var DenormalizerContextInterface|MockObject $context */
42-
$context = $this->getMockByCalls(DenormalizerContextInterface::class);
38+
$builder = new MockObjectBuilder();
39+
40+
/** @var DenormalizerContextInterface $context */
41+
$context = $builder->create(DenormalizerContextInterface::class, []);
4342

4443
$fieldDenormalizer = new CallbackFieldDenormalizer(
4544
static function (

tests/Unit/Denormalizer/ConvertTypeFieldDenormalizerTest.php

Lines changed: 172 additions & 133 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)