Skip to content

Instantly share code, notes, and snippets.

View svenluijten's full-sized avatar

Sven Luijten svenluijten

View GitHub Profile
@svenluijten
svenluijten / extra-assertions.php
Last active March 28, 2018 13:07
extra assertions against arrays
<?php
namespace Tests;
use Illuminate\Support\Str;
use PHPUnit\Framework\TestCase as BaseTestCase;
class TestCase extends BaseTestCase
{
/**
#
# Available at https://git.io/sven-git-aliases
#
# run "curl -fsSL https://git.io/sven-git-aliases | sh" to apply these automagically.
#
git config alias.st "status -sb"
git config alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config alias.df "diff --"
git config alias.branch-name "rev-parse --abbrev-ref HEAD"
git config alias.find = "log --pretty=\"format:%Cblue%H %Cgreen%s%Creset\" --abbrev-commit --grep"
[user]
useConfigOnly = true
# name = Robin Hood
# email = your-email@example.com
signingkey = <gpg signing key>
[alias]
st = "status"
lg = log --graph --date=human --pretty=default
df = "diff --"