/** * @return void */ public function testApplyExtraStylesIfNeededShouldDoNothingIfWrapTextAlreadyApplied() { $style = (new StyleBuilder())->setShouldWrapText()->build(); $styleHelper = new StyleHelper($this->defaultStyle); $this->assertTrue($style->shouldWrapText()); $updatedStyle = $styleHelper->applyExtraStylesIfNeeded($style, ["multi\nlines"]); $this->assertTrue($updatedStyle->shouldWrapText()); }