Mockery v1.5.0 Release Notes

Release Date: 2022-01-20 // 4 months ago
    • 0️⃣ Override default call count expectations via expects() #1146
    • 🤡 Mock methods with static return types #1157
    • 🤡 Mock methods with mixed return type #1156
    • 🤡 Mock classes with new in initializers on PHP 8.1 #1160
    • ✂ Removes redundant PHPUnitConstraint #1158

Previous changes from v1.4.4

    • 🛠 Fixes auto-generated return values #1144
    • ➕ Adds support for tentative types #1130
    • 🛠 Fixes for PHP 8.1 Support (#1130 and #1140)
    • ➕ Add method that allows defining a set of arguments the mock should yield #1133
    • ➕ Added option to configure default matchers for objects \Mockery::getConfiguration()->setDefaultMatcher($class, $matcherClass) #1120