Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit a72b62a

Browse files
committed
Add test with zero string value
1 parent 768db22 commit a72b62a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/HeaderTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@ public function testSetIntValueViaConstructor($class, $name)
128128
self::assertSame($name . ': 100', $header->toString());
129129
}
130130

131+
/**
132+
* @dataProvider header
133+
*
134+
* @param string $class
135+
* @param string $name
136+
*/
137+
public function testSetZeroStringValueViaConstructor($class, $name)
138+
{
139+
$header = new $class('0');
140+
141+
self::assertSame('0', $header->getFieldValue());
142+
self::assertSame($name . ': 0', $header->toString());
143+
}
144+
131145
/**
132146
* @dataProvider header
133147
*

0 commit comments

Comments
 (0)