Pink-Crab / Perique-Framework

The Perqiue Plugin Framework for WordPress
5 stars 0 forks source link

[V2] Replace all tests using reflection to get DI rules from inner dice #142

Closed gin0115 closed 1 year ago

gin0115 commented 1 year ago

Many of the tests use the Object::get_property() method, which uses Reflection to access the inner dice rules.

Now PinkCrab_Dice::getRules() exists, can use this to get any rule we need to check. This should make the tests less hacky!