Skip to content

Commit e219038

Browse files
committed
fix: add integration fixes
1 parent 5c5ee53 commit e219038

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/BehatMockHttpContextBundle.php renamed to src/BehatHttpMockContextBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88

9-
class BehatMockHttpContextBundle extends Bundle
9+
class BehatHttpMockContextBundle extends Bundle
1010
{
1111
}

src/Context/HttpMockContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class HttpMockContext implements Context
1818
{
1919
public function __construct(
2020
private ContainerInterface $container,
21-
private ExtendedHttpMockClientCollection $extendedMockHttpClientCollection
21+
private ExtendedHttpMockClientCollection $extendedHttpMockClientCollection
2222
) {
2323
}
2424

@@ -29,7 +29,7 @@ public function __construct(
2929
*/
3030
public function afterScenario(): void
3131
{
32-
foreach ($this->extendedMockHttpClientCollection->getHandlers() as $extendedMockHttpClient) {
32+
foreach ($this->extendedHttpMockClientCollection->getHandlers() as $extendedMockHttpClient) {
3333
if (!($extendedMockHttpClient instanceof ExtendedMockHttpClient)) {
3434
throw new RuntimeException('You should replace HTTP client service using ExtendedMockHttpClient');
3535
}

src/Resources/config/http_mock_context.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsd:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
55

66
<services>
7-
<service public="true" autowire="true" id="BehatHttpMockContext\Context\MockContext" class="BehatHttpMockContext\Context\MockContext">
7+
<service public="true" autowire="true" id="BehatHttpMockContext\Context\HttpMockContext" class="BehatHttpMockContext\Context\HttpMockContext">
88
<argument key="$container" type="service" id="test.service_container"/>
99
<argument key="$extendedHttpMockClientCollection" type="service" id="BehatHttpMockContext\Collection\ExtendedHttpMockClientCollection"/>
1010
</service>

0 commit comments

Comments
 (0)