Skip to content

Instantly share code, notes, and snippets.

@adnasa
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adnasa/f287d5d70ec07a38acaa to your computer and use it in GitHub Desktop.
Save adnasa/f287d5d70ec07a38acaa to your computer and use it in GitHub Desktop.
unit-testing snippets
# pstorm
_ac
$this->assertCount($START$, $COUNTABLE$); $END$
_at
$this->asserTrue($START$, $BOOLEAN$); $END$
_e
$this->asserEquals($START$, $CHECK_EQUAL$); $END$
_ins
$this->assertInstanceOf('$START', $INSTANCE$); $END$
_n
$this->assertNotNull($START); $END$
_nn
$this->assertNotNull($START$); $END$
# VIM, snipMate snippets
snippet _e
$this->assertEquals(${1}); {2}
snippet _oh
$this->assertObjectHasAttribute(${1}); {2}
snippet _ah
$this->assertArrayHasKey(${1}); {2}
snippet _ac
$this->assertCount(${1}); {2}
snippet _nn
$this->assertNotNull(${1}); {2}
snippet _n
$this->assertNull(${1}); {2}
snippet _ins
$this->assertInstanceOf(${1}); ${2}
snippet _at
$this->assertTrue(${1}); ${2}
snippet _af
$this->assertFalse(${1}); ${2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment