Skip to content

Commit

Permalink
Merge pull request #566 from tienvx/add-return-type
Browse files Browse the repository at this point in the history
chore: Add void return type to tests
  • Loading branch information
tienvx authored Apr 25, 2024
2 parents e46cba4 + 2e57667 commit bfef146
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/PhpPact/Consumer/Model/ConsumerRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function setUp(): void
$this->request = new ConsumerRequest();
}

public function testSerializing()
public function testSerializing(): void
{
$model = new ConsumerRequest();
$model
Expand All @@ -42,7 +42,7 @@ public function testSerializing()
$this->assertEquals('application/json', $body->getContentType());
}

public function testSerializingWhenPathUsingMatcher()
public function testSerializingWhenPathUsingMatcher(): void
{
$matcher = new Matcher();
$pathVariable = '474d610b-c6e3-45bd-9f70-529e7ad21df0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class BrokerTest extends TestCase
{
public function testSetters()
public function testSetters(): void
{
$enablePending = true;
$wipPactSince = '2020-01-30';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class UrlTest extends TestCase
{
public function testSetters()
public function testSetters(): void
{
$url = new Uri('http://example.com/path/to/pact.json');
$token = 'test-123';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class VerifierConfigTest extends TestCase
{
public function testSetters()
public function testSetters(): void
{
$callingApp = new CallingApp();
$providerInfo = new ProviderInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class StubServerConfigTest extends TestCase
{
public function testSetters()
public function testSetters(): void
{
$brokerUrl = new Uri('http://localhost');
$port = 1234;
Expand Down

0 comments on commit bfef146

Please sign in to comment.