PHPUnit Snippets installs statistics
By Winnie Lin (4 listings) · VS Code Marketplace · Snippets
PHPUnit snippets support for Visual Studio Code
PHPUnit Snippets has 95,696 recorded installs on VS Code Marketplace.
It ranks #2433 of 2,500 tracked VS Code Marketplace listings by installs.
It is rated 5.0 out of 5 from 4 ratings.
PluginStats has 3 daily observations since Oct 16, 2026; the latest is from Oct 18, 2026.
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 (deprecated in PHPUnit 8) | $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 (deprecated in PHPUnit 8) | $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
| Trigger | Snippet |
| exp:Exception | $this->expectException() | | exp:ExceptionCode | $this->expectExceptionCode() | | exp:ExceptionMessage | $this->expectExceptionMessage() | | exp:ExceptionMessageRegExp | $this->expectExceptionMessageRegExp() |
Test and Fixture Snippets
Start with pu: and follows support code completion.
| Trigger | Snippet |
| pu:testCase | Create basic test case class | | pu:testFunction | Create base test function | | pu:testDoxFunction | Create test function with @testdox annotation | | pu:testException (deprecated in PHPUnit 8) | Create test function with @expectedException | | pu:assertPreConditions | assertPreConditions(): void | | pu:assertPostConditions | assertPostConditions(): void | | pu:setUpBeforeClass | setUpBeforeClass(): void | | pu:setUp | setUp(): void | | pu:tearDown | tearDown(): void | | pu:tearDownAfterClass | tearDownAfterClass(): void | | pu:onNotSuccessfulTest | onNotSuccessfulTest(): void |
Examples
Trigger: pu:testCase
Trigger: pu:setUp
Trigger: pu:tearDown
Trigger: pu:testFunction
Trigger: pu:testDoxFunction
Trigger: pu:testException
Enjoy Unit Testing!!
Description from the VS Code Marketplace listing.
- phpunit
- snippet
- testing
Where PHPUnit Snippets sits in the listing
Each band is one page of 20. Installs on a log scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
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.
Recent observations
Full history (3)Similar VS Code Marketplace Snippets plugins
Data 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 Oct 18, 2026. See the methodology.