Viewing posts about Mock.

Using Mocks with PHPUnit

Creating test doubles, or mocks, is a feature of PHPUnit that I recently discovered and am quickly falling in love with. Previously I would find other ways to mock my system, like creating SQLite connections instead of a persistent database, or even duplicating an entire mock class for injection.…

  • Category Web Development
  • Posted August 25, 2016
  • read more

Mocking Internal PHP Functions

A problem that I've run into during the unending quest for complete test coverage is mocking of internal PHP functions. Unit tests are easy to write as long as a class method returns everything it does, but when a method starts to call out to certain internal PHP functions things get difficult. It's…

  • Category Web Development
  • Posted May 31, 2016
  • read more

Activity Stream

  • Tweeted | RT @chainlink: .@RarifyTech is bringing high-quality #NFT floor price data to #blockchains through the #Chainlink Network, enabling devs to…
  • Tweeted | 0xbF611e071d3ab46c013b815807d554578FC8Ae82
  • Tweeted | RT @RarifyTech: The ✨BEST✨ APIs for #NFTs Our #SmartFloorPrice filters out Outliers and Wash Trades for MORE Accurate #NFT Prices! Start…
  • Tweeted | @sheer_shweta @EmmaBostian Oh geez, blushing over here. I really miss solving hard problems with you and growing ou… [twitter.com/i/web/status/1…]
  • Tweeted | RT @cassidoo: I learned about moose. I've talked about moose in every single meeting and podcast I've been in this week. Now it is time f…
View more activities…