Elektrine lite

← Feed

Giuseppe Mazzapica

gmazzap@phpc.social

<p>Captivated by WordPress development during his architecture studies, Giuseppe couldn&#39;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&#39;s struggling more with the &quot;socio-&quot; part of his socio-technical job.</p>

Posts

  • Post #486427

    @emd@cosocial.ca First, if it&#39;s a class *method*, don&#39;t use Brain Monkey, but the Mockery directly. Brain Monkey brings Mockery features to *functions*, for object methids you don&#39;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&#39; `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