Skip to content

Instantly share code, notes, and snippets.

@avalanche123
Created May 16, 2011 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save avalanche123/974668 to your computer and use it in GitHub Desktop.
Save avalanche123/974668 to your computer and use it in GitHub Desktop.
brain fuck
<?php
$user2->expects($this->once())
->method('getSalt')
->will(
$this->returnCallback(function() use (&$user2) {
return $user2->getSalt();
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment