Giuseppe Mazzapica
gmazzap@phpc.social
<p>Captivated by WordPress development during his architecture studies, Giuseppe couldn't escape the web dev industry for the next two decades.</p><p>WP expert and eager open source contributor, he used to say he spoke PHP better than English.</p><p>Despite his undiminished interest in software development and architecture, his job has lately been more about engineering leadership and strategy than code.</p><p>These days, he's struggling more with the "socio-" part of his socio-technical job.</p>
Posts
-
Post #486427
@emd@cosocial.ca First, if it's a class *method*, don't use Brain Monkey, but the Mockery directly. Brain Monkey brings Mockery features to *functions*, for object methids you don't need it. Anyway, the mock/stub is reset when you call `Monkey\tearDown()` at the end of every test case (in PHPUnit you do It in test class' `tearDown()`). If in the same test case you need different mock/stub for same function, just do the stub/mock again. The second time it will override what you h...
-
Post #485984
@dominik that one client has probably plugins using native PHP time/date functions instead of WP functions