Last active
August 29, 2015 14:05
-
-
Save adnasa/f287d5d70ec07a38acaa to your computer and use it in GitHub Desktop.
unit-testing snippets
This file contains hidden or 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
# 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$ |
This file contains hidden or 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
# 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