PHPUnit Snippets installs statistics
By Winnie Lin (4 listings) · VS Code Marketplace · Snippets
PHPUnit snippets support for Visual Studio Code
PHPUnit Snippets has 96,356 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #2439 of 2,515 tracked listings.
Rating: 5.00 / 5 from 4 ratings
About PHPUnit Snippets
PHPUnit Snippets
PHPUnit assertion and test snippets support for Visual Studio Code.
Screenshot

Snippet Trigger
Assertion
Start with assert: and follows support assertion.
For example: Type assert:Equals trigger with tab key, it produces $this->assertEquals($expected, $actual); snippet for you.
| Trigger | Snippet |
|---|---|
| assert:ArrayHasKey | $this->assertArrayHasKey() |
| assert:ClassHasAttribute | $this->assertClassHasAttribute() |
| assert:ArraySubset <span style="color: red;">(deprecated in PHPUnit 8)</span> | $this->assertArraySubset() |
| assert:ClassHasStaticAttribute | $this->assertClassHasStaticAttribute() |
| assert:Contains | $this->assertContains() |
| assert:ContainsOnly | $this->assertContainsOnly() |
| assert:ContainsOnlyInstancesOf | $this->assertContainsOnlyInstancesOf() |
| assert:Count | $this->assertCount() |
| assert:DirectoryExists | $this->assertDirectoryExists() |
| assert:DirectoryIsReadable | $this->assertDirectoryIsReadable() |
| assert:DirectoryIsWritable | $this->assertDirectoryIsWritable() |
| assert:Empty | $this->assertEmpty() |
| assert:EqualXMLStructure | $this->assertEqualXMLStructure() |
| assert:Equals | $this->assertEquals() |
| assert:False | $this->assertFalse() |
| assert:FileEquals | $this->assertFileEquals() |
| assert:FileExists | $this->assertFileExists() |
| assert:FileIsReadable | $this->assertFileIsReadable() |
| assert:FileIsWritable | $this->assertFileIsWritable() |
| assert:GreaterThan | $this->assertGreaterThan() |
| assert:GreaterThanOrEqual | $this->assertGreaterThanOrEqual() |
| assert:Infinite | $this->assertInfinite() |
| assert:InstanceOf | $this->assertInstanceOf() |
| assert:InternalType <span style="color: red;">(deprecated in PHPUnit 8)</span> | $this->assertInternalType() |
| assert:IsArray | $this->assertIsArray() |
| assert:IsBool | $this->assertIsBool() |
| assert:IsCallable | $this->assertIsCallable() |
| assert:IsFloat | $this->assertIsFlat() |
| assert:IsInt | $this->assertIsInt() |
| assert:IsIterable | $this->assertIsIterable() |
| assert:IsNumeric | $this->assertIsNumeric() |
| assert:IsObject | $this->assertIsObject() |
| assert:IsResource | $this->assertIsResource() |
| assert:IsScalar | $this->assertIsScalar() |
| assert:IsString | $this->assertIsString() |
| assert:IsReadable | $this->assertIsReadable() |
| assert:IsWritable | $this->assertIsWritable() |
| assert:JsonFileEqualsJsonFile | $this->assertJsonFileEqualsJsonFile() |
| assert:JsonStringEqualsJsonFile | $this->assertJsonStringEqualsJsonFile() |
| assert:JsonStringEqualsJsonString | $this->assertJsonStringEqualsJsonString() |
| assert:LessThan | $this->assertLessThan() |
| assert:LessThanOrEqual | $this->assertLessThanOrEqual() |
| assert:Nan | $this->assertNan() |
| assert:Null | $this->assertNull() |
| assert:ObjectHasAttribute | $this->assertObjectHasAttribute() |
| assert:RegExp | $this->assertRegExp() |
| assert:StringMatchesFormat | $this->assertStringMatchesFormat() |
| assert:StringMatchesFormatFile | $this->assertStringMatchesFormatFile() |
| assert:Same | $this->assertSame() |
| assert:StringEndsWith | $this->assertStringEndsWith() |
| assert:StringEqualsFile | $this->assertStringEqualsFile() |
| assert:StringStartsWith | $this->assertStringStartsWith() |
| assert:That | $this->assertThat() |
| assert:True | $this->assertTrue() |
| assert:XmlFileEqualsXmlFile | $this->assertXmlFileEqualsXmlFile() |
| assert:XmlStringEqualsXmlFile | $this->assertXmlStringEqualsXmlFile() |
| assert:XmlStringEqualsXmlString | $this->assertXmlStringEqualsXmlString() |
Incomplete and Skipped Test
| Trigger | Snippet |
|---|---|
| mark:TestIncomplete | $this->markTestIncomplete() |
| mark:TestSkipped | $this->markTestSkipped() |
Expect Exception…
Description from the VS Code Marketplace listing.
- phpunit
- snippet
- testing
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Snippets plugins
All 20 PHPUnit Snippets alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=onecentlin.phpunit-snippets. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.