I recently wrote an article about testing CakePHP controllers the hard way where I covered testing controllers by running their methods manually. I hinted at some additional tricks that could be performed by using Mock Objects. Today I’m going to spill the beans on Mocks, and how I use them when testing my Controllers. What is a Mock Object First figuring out what Mock objects are and are not is i
![Posts | Mark Story](https://cdn-ak-scissors.b.st-hatena.com/image/square/a68fe216fa8ba61824e80174c9da8fa907c90074/height=288;version=1;width=512/https%3A%2F%2Fmark-story.com%2Fimg%2Fmouth-icon-large.png)