| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function testAddContentWhenQuotesHaveBeenClosedWillThrowAnException() |
||
| 23 | { |
||
| 24 | $value = new Value(); |
||
| 25 | |||
| 26 | $value->setInQuotes(true); |
||
| 27 | $value->addContent('some stuff'); |
||
| 28 | $value->setInQuotes(false); |
||
| 29 | |||
| 30 | static::assertEquals('some stuff', $value->getValue()); |
||
| 31 | |||
| 32 | static::expectException(RuntimeException::class); |
||
| 33 | $value->addContent('more content'); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |