Skip to content

Commit f31fd4d

Browse files
committed
Fix compatibility with codeception 4
1 parent 6ffe32a commit f31fd4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MockServerHelper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ public function _initialize(): void
4747
$expectationJson = file_get_contents(__DIR__ . '/not-matched-request.json');
4848
Assert::assertIsString($expectationJson);
4949
$this->createMockRequest($expectationJson);
50+
} else {
51+
$this->deactivateNotMatchedRequest();
5052
}
5153
}
5254

53-
public function _beforeSuite(array $settings = []): void
55+
public function _beforeSuite($settings = []): void
5456
{
5557
parent::_beforeSuite($settings);
5658
if ($this->cleanUpBefore->isSuite()) {

0 commit comments

Comments
 (0)