vs code phpunit snippets
1.0.0
PHPUnit-Snippets für VSCode
Liste der Ausschnitte
assertArrayHasKey()
assertAttributeEquals()
verwendenassertClassHasAttribute()
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()
aufstellen
public function setUp()
{
// set up
}
abreißen
public function tearDown()
{
// tear down
}
prüfen
/**
* @covers [Class]::[Method]()
*/
public function test[Method]()
{
// assertions
}
test2
/**
* @covers [Class]::[Method1]()
* @covers [Class]::[Method2]()
*/
public function test[Method1]_[Method2]()
{
// assertions
}
testex
/**
* @covers [Class]::[Method]()
* @expectedException [Exception]
*/
public function test[Method]()
{
// assertions
}
testi
/**
* @covers [Class]::[Method]()
*/
public function test[Method]()
{
$this->markTestIncomplete('Not yet implemented');
}
Genießen!