File tree 2 files changed +7
-7
lines changed
src/Symfony/Component/Notifier/Tests/Transport
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -184,26 +184,26 @@ public function getOptionProvider(): iterable
184
184
{
185
185
yield [
186
186
'foo ' ,
187
- 'scheme://u$er:pa$s@ localhost:8000/channel ?with_value=foo ' ,
187
+ 'scheme://localhost?with_value=foo ' ,
188
188
'with_value ' ,
189
189
];
190
190
191
191
yield [
192
192
'default-value ' ,
193
- 'scheme://u$er:pa$s@ localhost:8000/channel ?empty= ' ,
193
+ 'scheme://localhost?empty= ' ,
194
194
'empty ' ,
195
195
'default-value ' ,
196
196
];
197
197
198
198
yield [
199
- 0 ,
200
- 'scheme://u$er:pa$s@ localhost:8000/channel ?zero=0 ' ,
199
+ ' 0 ' ,
200
+ 'scheme://localhost?zero=0 ' ,
201
201
'zero ' ,
202
202
];
203
203
204
204
yield [
205
205
'default-value ' ,
206
- 'scheme://u$er:pa$s@ localhost:8000/channel ?option=value ' ,
206
+ 'scheme://localhost?option=value ' ,
207
207
'non_existent_property ' ,
208
208
'default-value ' ,
209
209
];
Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ public function testCreateThrowsUnsupportedSchemeException()
41
41
{
42
42
$ this ->expectException (UnsupportedSchemeException::class);
43
43
44
- $ this ->nullTransportFactory ->create (new Dsn ('foo ' , ' ' ));
44
+ $ this ->nullTransportFactory ->create (Dsn:: fromString ('foo:// ' ));
45
45
}
46
46
47
47
public function testCreate ()
48
48
{
49
49
$ this ->assertInstanceOf (
50
50
NullTransport::class,
51
- $ this ->nullTransportFactory ->create (new Dsn ('null ' , ' ' ))
51
+ $ this ->nullTransportFactory ->create (Dsn:: fromString ('null:// ' ))
52
52
);
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments