| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function testAddContentWhenQuotesHaveBeenClosedWillThrowAnException() |
||
| 12 | { |
||
| 13 | $value = new Value(); |
||
| 14 | |||
| 15 | $value->setInQuotes(true); |
||
| 16 | $value->addContent('some stuff'); |
||
| 17 | $value->setInQuotes(false); |
||
| 18 | |||
| 19 | static::assertEquals('some stuff', $value->getValue()); |
||
| 20 | |||
| 21 | static::expectException(RuntimeException::class); |
||
| 22 | $value->addContent('more content'); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |