Cees-Jan

Smoke testing ReactPHP applications with Cigar

Last week I came across Cigar, a smoke testing tool by Matt Brunt. Which, to me, is great stepping stone for my personal projects/sites to integration tests. In this post we not only go into Cigar, but also how to start your HTTP ReactPHP application, run cigar against it, and shut it down again. (Note that it doesn't have to be a ReactPHP application it can also be a NodeJS app, or PHP's build in webserver you use for testing.)


Read on →

Categories: PHP - Bash - ReactPHP - ReactPHP SeriesTags: ReactPHP - PHP - Bash

Cees-Jan

ReactPHP with RecoilPHP: Creating for/http-middleware-psr15-adapter

There are more uses for coroutines than just making working with promises easier. In this post we're diving into the details on how they are used by the Friends of ReactPHP in the PSR-15 Middleware adapter for react/http.


Read on →

Cees-Jan

ReactPHP with RecoilPHP: Creating a Munin Node Client

In the previous post we've covered the basics of coroutines. In this post we're going to build a munin-node client specifically to fetch switch port traffic counters. During this post we not just write an munin-node client, we also deal with some domain logic. All code examples contain comments about what is going on and why. There is a lot of knowledge in those as well so be sure to read the comments.


Read on →