xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Refactor src/test/php #329

Closed thekid closed 1 year ago

thekid commented 1 year ago

Changes

Current directory structure in src/test/php:

net/xp_framework/unittest
net/xp_framework/unittest/annotations
net/xp_framework/unittest/annotations/fixture
net/xp_framework/unittest/archive
net/xp_framework/unittest/core
net/xp_framework/unittest/core/generics
net/xp_framework/unittest/io
net/xp_framework/unittest/io/streams
net/xp_framework/unittest/reflection
net/xp_framework/unittest/reflection/classes
net/xp_framework/unittest/runtime
net/xp_framework/unittest/util
net/xp_framework/unittest/util/cmd

New directory structure in src/test/php:

io/unittest
lang/unittest
util/unittest
xp/unittest

Outcome

Before:

Tests:       4267 passed, 38 skipped
Memory used: 19971.35 kB (40948.16 kB peak)
Time taken:  5.367 seconds

After:

Tests:       4257 passed, 38 skipped
Memory used: 19774.26 kB (40249.73 kB peak)
Time taken:  5.453 seconds

The 10 "missing" tests are from reducing the cross-package dependency on the Name class in util.unittest and io.unittest, and replacing them with inline variants.