mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
da20a62e49180c579c1006ed56005dffe17c6b6e
Sometimes objects need native toString() and toArray() methods that are different from what you want to snapshot. This adds an explicit toSnapshot() method that will be called first (when set) allowing for better snapshot values than the generic methods offer.
Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
- Explore our docs at pestphp.com »
- Follow us on Twitter at @pestphp »
- Join us at discord.gg/kaHY6p54JH » or t.me/+kYH5G4d5MV83ODk0 »
Sponsors
We cannot thank our sponsors enough for their incredible support in funding Pest's development. Their contributions have been instrumental in making Pest the best it can be. For those who are interested in becoming a sponsor, please visit Nuno Maduro's Sponsor page at github.com/sponsors/nunomaduro.
Platinum Sponsors
Premium Sponsors
Pest is an open-sourced software licensed under the MIT license.
Languages
PHP
99.2%
HTML
0.7%
