Skip to content

Instantly share code, notes, and snippets.

@astrsk-hori
Created April 22, 2015 05:29
Show Gist options
  • Save astrsk-hori/64b7ddcb367c0fa89887 to your computer and use it in GitHub Desktop.
Save astrsk-hori/64b7ddcb367c0fa89887 to your computer and use it in GitHub Desktop.
laravelのfacadeのパーシャルモックのメモ ref: http://qiita.com/astrsk_hori/items/efe290554b497c565470
// File::delete()メソッド:
File::shouldReceive('delete')->andReturn(true);
File::makePartial();
File::delete();
// true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment