We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b0bd4 commit cbd3444Copy full SHA for cbd3444
src/Mock/ApiClientMockBuilder.php
@@ -12,17 +12,12 @@ final class ApiClientMockBuilder implements Builder
12
private Node\Expr $node;
13
14
public function __construct(
15
- private string $mockedClientBuilder
+ private string $mockedClientBuilder,
16
+ private ?array $mockedArgs = []
17
) {
- $faker = Factory::create();
18
-
19
$this->node = new Node\Expr\New_(
20
class: new Node\Name\FullyQualified($this->mockedClientBuilder),
21
- args: [
22
- new Node\Arg(
23
- new Node\Scalar\String_('https://akeneo.'.$faker->safeEmailDomain()),
24
- ),
25
- ],
+ args: $this->mockedArgs,
26
);
27
}
28
0 commit comments