Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testDescriptionLength() |
||
11 | { |
||
12 | $lineItem = new LineItem('doge', 1, TaxCategory::BOOKS_GENERAL, 1.0); |
||
13 | $lineItem->setDescription(str_repeat('x', 260)); |
||
14 | |||
15 | $this->assertEquals(255, strlen($lineItem->getDescription())); |
||
16 | $this->assertStringEndsWith('...', $lineItem->getDescription()); |
||
17 | } |
||
18 | } |
||
19 |