San Francisco, California
London, United Kingdom
Richard is a contract PHP developer, currently on assignment at Liz Earle Cosmetics, Ryde. He has worked with PHP since 2005 and has developed and maintained a variety of applications, using Zend Framework and Magento. He has a particular interest in automated software testing and the use of agile methods in project management. His LinkedIn profile can be found at https://uk.linkedin.com/in/richardarthurharrison
Creating Unit Test Mocks - PHPUnit or Prophecy?
This talk will look at how PHPUnit and Prophecy compare when using mock objects to unit test PHP code. Whilst PHPUnit is the standard test library for PHP, Prophecy is a good alternative for generating mock objects and has been included within PHPUnit since version 4.5.
The talk will start by introducing the use of mock objects in unit testing and define four types of test double : dummy, stub, mock and spy. The main part of the talk will then concentrate on how each of these types are implemented; firstly, using PHPUnit, and secondly, using Prophecy. The talk will conclude by discussing when a developer might use Prophecy mock objects and when PHPUnit mocks might be more appropriate.
5 Minute Lightning Talk
We've introduced a new 5 minute lightning talk each month especially for local PHP folks to briefly show something to the PHP Hampshire audience. This could be anything from something cool you've been working on, an awesome tool you've discovered, or even trying out an idea for a longer talk.
This month's lightning talk will be by Gareth Evans.
Follow us on Twitter @phphants for updates on this and any future events.
Also join our IRC channel, #phph on Freenode, or join directly at http://phphants.co.uk/chat.
We are always on the lookout for speakers for events - give us an email on firstname.lastname@example.org and we'll try fitting you in!
- 19:00 Arrival
- 19:25 Welcome Announcement
- 19:30 Gareth Evans
- 19:40 Richard Harrison
- 20:40 Closing Remarks
- 20:45 Social at Brewhouse & Kitchen Portsmouth
When & Where
PHP Hampshire is a PHP User Group aiming to help people learn, share our knowledge and support the PHP community in Hampshire.