This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// set up the mock | |
class testUser extends PHPUnit_Test_Case { | |
public function testUserCreate() | |
{ | |
$user = Mockery::mock('models_user'); | |
$user->shouldReceive('select') | |
->once() | |
->with($id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cot=menu,menuone | |
ino <BS> <BS><C-r>=getline('.')[col('.')-3:col('.')-2]=~#'\k\k'?!pumvisible()?"\<lt>C-n>\<lt>C-p>":'':pumvisible()?"\<lt>C-y>":''<CR> | |
ino <CR> <C-r>=pumvisible()?"\<lt>C-y>":""<CR><CR> | |
ino <Tab> <C-r>=pumvisible()?"\<lt>C-n>":"\<lt>Tab>"<CR> | |
ino <S-Tab> <C-r>=pumvisible()?"\<lt>C-p>":"\<lt>S-Tab>"<CR> | |
augroup MyAutoComplete | |
au! | |
au InsertCharPre * if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! MyTabLine() | |
let s = '' | |
let s .= '%#TabLine#' | |
let s .= '%<' | |
let s .= '%(%{fnamemodify(getcwd(), ":~")} %)' | |
if (exists('*fugitive#buffer')) | |
let s .= '%(⌥ %{exists("b:git_dir")?fugitive#head(7):""} %)' | |
endif | |
let s .= '%=' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:CustomWincmdEquals(visual) | |
try | |
let w = winnr() | |
wincmd P | |
exe &previewheight.'wincmd _' | |
exe w.'wincmd w' | |
catch /^E441:/ | |
continue | |
finally | |
return "\<C-W>=" . (a:visual ? 'gv' : '') |