Skip to content

Clean up test suite and package metadata - #88

Merged
dereuromark merged 1 commit into
2.xfrom
tests-meta-cleanup
Oct 10, 2026
Merged

dereuromark merged 1 commit into
2.xfrom
tests-meta-cleanup

Conversation

@dereuromark

Copy link
Copy Markdown
Member

Split out of #87: the test and metadata parts only, no changes to src/.

Tests

  • The IOInterface double is a stub now. PHPUnit 13 reports one notice per test for a mock without expectations.
  • Each test uses its own temp directory, and cleanup goes through Composer's Filesystem. The old PHP_OS === 'Windows' branch never matched (the value is WINNT).

Metadata and README

  • .gitattributes: dropped phpcs.xml.dist and psalm.xml (files no longer exist), added tests/, phpcs.xml, .gitignore and .gitattributes so they stay out of the dist archive.
  • composer.json: removed the stan-tests and stan-baseline scripts, they call a phpstan.phar and a tests/phpstan.neon that are not there. Added keywords and support.
  • README: license badge links to LICENSE.txt (the file LICENSE does not exist), install command without the :* constraint.

Tests:
- The IOInterface double is a stub; PHPUnit 13 reports a notice per test
  for a mock without expectations.
- Each test gets its own temp directory, removed through Composer's
  Filesystem. The old PHP_OS === 'Windows' branch never matched, the
  value on Windows is WINNT.

Metadata:
- .gitattributes: drop entries for files that no longer exist
  (phpcs.xml.dist, psalm.xml), export-ignore tests/, phpcs.xml,
  .gitignore and .gitattributes.
- composer.json: remove the stan-tests and stan-baseline scripts, which
  call a phpstan.phar and tests/phpstan.neon that do not exist. Add
  keywords and support.
- README: license badge points at LICENSE.txt, install command without
  the :* constraint.
@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.35%. Comparing base (5c0484b) to head (08d7da7).

Additional details and impacted files
@@            Coverage Diff            @@
##                2.x      #88   +/-   ##
=========================================
  Coverage     82.35%   82.35%           
  Complexity       48       48           
=========================================
  Files             1        1           
  Lines           153      153           
=========================================
  Hits            126      126           
  Misses           27       27           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dereuromark
dereuromark merged commit a8eddad into 2.x Oct 10, 2026
8 checks passed
@dereuromark
dereuromark deleted the tests-meta-cleanup branch October 10, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant