Skip to content

Conversation

@rasamassen
Copy link

@rasamassen rasamassen commented Oct 31, 2025

Description

While testing RTF styles, I was continually having to create documents to validate that all the styles were being applied correctly. To solve that issue, I created a comprehensive test suite (for the things being tested, anyway) that will allow visual testing of a whole class (element, style, etc.) to ensure everything is working as expected.

For example, this test suite has revealed issues in Word2007 with various underline types not working, which surprised me since Word2007 appears to be the main focus of PHPWord.

@Progi1984 :: When this test suite is merged (along with my previous 17 pull requests...), I'll begin working on ensuring that all the styling for Word2007, ODText, RTF, and HTML all work as expected for the 7 test suites I created (ePub either needs a lot of work or a plugin someone else has built, and PDF is a plugin, so I'm less worried about those). At least then users can expect the basics to all work across the formats, which would be a big improvement.

Fixes # (issue)

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@coveralls
Copy link

coveralls commented Oct 31, 2025

Coverage Status

coverage: 96.757%. remained the same
when pulling aaf6970 on rasamassen:test-suite
into 0ab0b49 on PHPOffice:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants