8000 Add test for zero · symfony/symfony@1a8a31c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a8a31c

Browse files
committed
Add test for zero
1 parent d182801 commit 1a8a31c

File tree

1 file changed

+8
-0
lines changed
  • src/Symfony/Component/Notifier/Tests/Transport

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ public function testGetRequiredOptionGetsOptionIfSet(): void
110110
$this->assertSame('some value', $dsn->getRequiredOption('with_value'));
111111
}
112112

113+
public function testGetRequiredOptionGetsOptionIfValueIsZero(): void
114+
{
115+
$options = ['timeout' => 0];
116+
$dsn = new Dsn('scheme', 'localhost', 'u$er', 'pa$s', '8000', $options, '/channel');
117+
118+
$this->assertSame(0, $dsn->getRequiredOption('timeout'));
119+
}
120+
113121
public function testGetRequiredOptionThrowRequiredOptionMissingExceptionIfOptionIsMissing()
114122
{
115123
$options = ['with_value' => 'some value'];

0 commit comments

Comments
 (0)
0