Skip to content

Commit 82a9e0b

Browse files
authored
Dont use deprecated PHPUnit methods (#771)
* Dont use deprecated PHPUnit methods * Fix more typos
1 parent 0c18616 commit 82a9e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Unit/Test/ResultMockFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ public function testCallToResolveDontFail()
7070
self::assertTrue($result->resolve());
7171
}
7272

73-
public function testCreateFailling()
73+
public function testCreateFailing()
7474
{
7575
$result = ResultMockFactory::createFailing(Result::class, 400, 'Boom');
7676

7777
$this->expectException(ClientException::class);
7878
$this->expectExceptionCode(400);
79-
$this->expectExceptionMessageRegExp('@HTTP 400 returned for "http://localhost/".*Boom@sm');
79+
$this->expectExceptionMessageMatches('@HTTP 400 returned for "http://localhost/".*Boom@sm');
8080

8181
$result->resolve();
8282
}
8383

84-
public function testCreateFaillingWithAdditionalTypeContent()
84+
public function testCreateFailingWithAdditionalTypeContent()
8585
{
8686
$result = ResultMockFactory::createFailing(
8787
Result::class,

0 commit comments

Comments
 (0)