Skip to content

Instantly share code, notes, and snippets.

@whatthejeff
Created March 11, 2014 07:47
Show Gist options
  • Save whatthejeff/9481281 to your computer and use it in GitHub Desktop.
Save whatthejeff/9481281 to your computer and use it in GitHub Desktop.
<?php
// PHPUnit 3.7
$mock->expects($this->any())->method('doSomething')->will($this->returnValue('something'))
// PHPUnit 4.0
$mock->method('doSomething')->willReturn('something');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment