http://blog.mauriziobonani.com/inspect-the-response-in-laravel-phpunit-tests/
dd(response()->getContent());
dd($this->app['session.store']);
``` | |
use Illuminate\Foundation\Testing\Concerns\InteractsWithExceptionHandling; | |
use InteractsWithExceptionHandling; | |
$this->withoutExceptionHandling(); | |
``` |
http://blog.mauriziobonani.com/inspect-the-response-in-laravel-phpunit-tests/
dd(response()->getContent());
dd($this->app['session.store']);
composer global update laravel/installer |
;= @echo off | |
;= rem Call DOSKEY and use this file as the macrofile | |
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0% | |
;= rem In batch mode, jump to the end of the file | |
;= goto:eof | |
;= Add aliases below here | |
e.=explorer . | |
gl=git log --oneline --all --graph --decorate $* | |
ls=ls --show-control-chars -F --color $* | |
pwd=cd |
List Font Methods on a Zebra Printer
^XA^HWE:*.*^XZ
source: https://support.zebra.com/cpws/docs/fonts/font_list_verification.htm
^XA^HH^XZ
function stringToHex(str) { | |
return str.split('').map(function (char) { | |
return '_' + char.charCodeAt(0).toString(16); | |
}).join(''); | |
} | |
console.log(stringToHex('ش')); // _d8_b4 |
^XA | |
^FO50,50 | |
^A@E:TT0003M_.TTF,N,50,50 | |
^PA1,1,1,1 | |
^FH | |
^FD | |
_D9_85_D8_AD_D8_A7_D9_83_D9_85_D8_A9 | |
^FS | |
^XZ |
So say you have a form like this:
<form method="POST" action="users/register">
<input type="text" name="username">
<button type="submit">Submit</button>
</form>
Then you want to access the request in your controller, you have a couple of methods...
// https://disqus.com/home/discussion/laracast/3_more_unit_testing_review_in_phpunit_testing_with_laravel/#comment-2563747337 | |
/** @test */ | |
function ${1/\s/_/g}() | |
{ | |
${0:// ${1:type name of method with spaces}} | |
} |