Skip to content

Instantly share code, notes, and snippets.

@giorgiosironi
Created April 18, 2013 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giorgiosironi/5415103 to your computer and use it in GitHub Desktop.
Save giorgiosironi/5415103 to your computer and use it in GitHub Desktop.
// phake
Phake::mock('Namespace\CollaboratorClass')
// proposed alternative (atoum)
new \mock\Namespace\CollaboratorClass()
// Mockito (Java)
package Namespace;
mock(CollaboratorClass.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment