Posts List

Laravel OpenAPI 3 Documentation Verification Using Dredd

How to use setup and use Dredd to verify OpenAPI 3 documentation on a Laravel project

Working with Remote and Overseas Teams

This particular project was a growing and learning experience in many ways. During this project, I worked remotely with an overseas team. While working with a remote team can be an enjoyable experience, it does present a few challenges. Those challenges are compounded when the remote team is also overseas. This project was no exception. There were many things that we could have done better. However, there were many things that we did well.

Setting expectations for a closure using Mockery

If you are trying to set an expectation for \Closure using mockery, you may have seen this error: Mockery\Exception\NoMatchingExpectationException: No matching handler found for Mockery_0_NAMESPACE_CLASSNAME::METHODNAME(object(Closure)). Either the method was unexpected or its arguments matched no expected argument list for this method To start off with, anonymous functions in PHP are instances of the internal Closure class. You probably tried something like passing a Closure to the expectation handler that was identical to the one being passed in the code.