8000 fix · symfony/symfony@999bf4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 999bf4a

Browse files
committed
fix
1 parent f9177f3 commit 999bf4a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Symfony/Component/Notifier/Tests/Transport/DsnTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,26 +184,26 @@ public function getOptionProvider(): iterable
184184
{
185185
yield [
186186
'foo',
187-
'scheme://u$er:pa$s@localhost:8000/channel?with_value=foo',
187+
'scheme://localhost?with_value=foo',
188188
'with_value',
189189
];
190190

191191
yield [
192192
'default-value',
193-
'scheme://u$er:pa$s@localhost:8000/channel?empty=',
193+
'scheme://localhost?empty=',
194194
'empty',
195195
'default-value',
196196
];
197197

198198
yield [
199-
0,
200-
'scheme://u$er:pa$s@localhost:8000/channel?zero=0',
199+
'0',
200+
'scheme://localhost?zero=0',
201201
'zero',
202202
];
203203

204204
yield [
205205
'default-value',
206-
'scheme://u$er:pa$s@localhost:8000/channel?option=value',
206+
'scheme://localhost?option=value',
207207
'non_existent_property',
208208
'default-value',
209209
];

src/Symfony/Component/Notifier/Tests/Transport/NullTransportFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public function testCreateThrowsUnsupportedSchemeException()
4141
{
4242
$this->expectException(UnsupportedSchemeException::class);
4343

44-
$this->nullTransportFactory->create(new Dsn('foo', ''));
44+
$this->nullTransportFactory->create(Dsn::fromString('foo://'));
4545
}
4646

4747
public function testCreate()
4848
{
4949
$this->assertInstanceOf(
5050
NullTransport::class,
51-
$this->nullTransportFactory->create(new Dsn('null', ''))
51+
$this->nullTransportFactory->create(Dsn::fromString('null://'))
5252
);
5353
}
5454
}

0 commit comments

Comments
 (0)
0