Skip to content

Commit e17b41e

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Cleanup CI scripts fix code style fix code style take query and request parameters into account when matching routes mistake fix tests to run assertions on returned Crawler instances
2 parents 039e9c1 + f38fde2 commit e17b41e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Test/TransportFactoryTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function incompleteDsnProvider(): iterable
5454
/**
5555
* @dataProvider supportsProvider
5656
*/
57-
public function testSupports(Dsn $dsn, bool $supports): void
57+
public function testSupports(Dsn $dsn, bool $supports)
5858
{
5959
$factory = $this->getFactory();
6060

@@ -64,7 +64,7 @@ public function testSupports(Dsn $dsn, bool $supports): void
6464
/**
6565
* @dataProvider createProvider
6666
*/
67-
public function testCreate(Dsn $dsn, TransportInterface $transport): void
67+
public function testCreate(Dsn $dsn, TransportInterface $transport)
6868
{
6969
$factory = $this->getFactory();
7070

@@ -77,7 +77,7 @@ public function testCreate(Dsn $dsn, TransportInterface $transport): void
7777
/**
7878
* @dataProvider unsupportedSchemeProvider
7979
*/
80-
public function testUnsupportedSchemeException(Dsn $dsn, string $message = null): void
80+
public function testUnsupportedSchemeException(Dsn $dsn, string $message = null)
8181
{
8282
$factory = $this->getFactory();
8383

@@ -92,7 +92,7 @@ public function testUnsupportedSchemeException(Dsn $dsn, string $message = null)
9292
/**
9393
* @dataProvider incompleteDsnProvider
9494
*/
95-
public function testIncompleteDsnException(Dsn $dsn): void
95+
public function testIncompleteDsnException(Dsn $dsn)
9696
{
9797
$factory = $this->getFactory();
9898

Tests/TransportTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TransportTest extends TestCase
2727
/**
2828
* @dataProvider fromStringProvider
2929
*/
30-
public function testFromString(string $dsn, TransportInterface $transport): void
30+
public function testFromString(string $dsn, TransportInterface $transport)
3131
{
3232
$transportFactory = new Transport([new DummyTransportFactory()]);
3333

@@ -63,7 +63,7 @@ public function fromStringProvider(): iterable
6363
/**
6464
* @dataProvider fromDsnProvider
6565
*/
66-
public function testFromDsn(string $dsn, TransportInterface $transport): void
66+
public function testFromDsn(string $dsn, TransportInterface $transport)
6767
{
6868
$this->assertEquals($transport, Transport::fromDsn($dsn));
6969
}
@@ -79,7 +79,7 @@ public function fromDsnProvider(): iterable
7979
/**
8080
* @dataProvider fromWrongStringProvider
8181
*/
82-
public function testFromWrongString(string $dsn, string $error): void
82+
public function testFromWrongString(string $dsn, string $error)
8383
{
8484
$transportFactory = new Transport([new DummyTransportFactory()]);
8585

@@ -116,7 +116,7 @@ public function send(RawMessage $message, Envelope $envelope = null): ?SentMessa
116116

117117
public function __toString(): string
118118
{
119-
return sprintf('dummy://local');
119+
return 'dummy://local';
120120
}
121121
}
122122

0 commit comments

Comments
 (0)