vs code phpunit snippets
1.0.0
VSCode용 PHPUnit 스니펫
스니펫 목록
assertArrayHasKey()
assertAttributeEquals()
assertClassHasAttribute()
assertClassHasStaticAttribute()
assertContains()
assertContainsOnly()
assertCount()
assertEquals()
평가합니다 .assertEmpty()
어셈블합니다 .assertEqualXMLStructure()
assertFalse()
assertFileEquals()
assertFileExists()
assertGreatherThan()
assertGreaterThanOrEqual()
assertInstanceOf()
assertInternalType()
지원assertLessThan()
assertLessThanOrEqual()
assertNotNull()
assertNull()
assertObjectHasAttribute()
assertRegExp()
확인하세요 .assertSame()
assertSelectCount()
assertSelectEquals()
평가assertStringEqualsFile()
assertStringEndsWith()
assertStringMatchesFormat()
assertStringMatchesFormatFile()
assertSelectRegExp()
assertStringStartsWith()
assertTrue()
assertTag()
assertXmlFileEqualsXmlFile()
assertXmlStringEqualsXmlFile()
assertXmlStringEqualsXmlString()
설정
public function setUp()
{
// set up
}
분해
public function tearDown()
{
// tear down
}
시험
/**
* @covers [Class]::[Method]()
*/
public function test[Method]()
{
// assertions
}
테스트2
/**
* @covers [Class]::[Method1]()
* @covers [Class]::[Method2]()
*/
public function test[Method1]_[Method2]()
{
// assertions
}
테텍스
/**
* @covers [Class]::[Method]()
* @expectedException [Exception]
*/
public function test[Method]()
{
// assertions
}
테스트
/**
* @covers [Class]::[Method]()
*/
public function test[Method]()
{
$this->markTestIncomplete('Not yet implemented');
}
즐기다!