PHP

Mock Objects in PHP – Testing

 Introduction In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front. A good example, where mock objects would be required, is [...]








PHP

PHP BOOTCAMP: Magic Constants

There are a lot of methods, classes and constants that PHP offers to developers for use. We’ll talk about the MAGIC CONSTANTS today. Note: These constants didn’t just appear in the standard PHP library, they were not dropped from heaven and a PHP developer doubling as a magician also didn’t write them. This was actually intended [...]




RUBY

Creating your own RSpec Matchers.


RUBY

Ruby on Steroids(DSLs): The Powerful Spell Called DSL


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Method Spells


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Fellowship of Spells


RUBY

How to Delegate Like a Boss