File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -557,3 +557,44 @@ snippet CSVIterator
557
557
558
558
snippet is
559
559
isset($1 {VISUAL})
560
+
561
+ # phpunit
562
+ snippet ase
563
+ $this->assertEquals(${1: expected } , ${2: actual } );
564
+
565
+ snippet asne
566
+ $this->assertNotEquals(${1: expected } , ${2: actual } );
567
+
568
+ snippet asf
569
+ $this->assertFalse(${1: Something } );
570
+
571
+ snippet ast
572
+ $this->assertTrue(${1: Something } );
573
+
574
+ snippet asfex
575
+ $this->assertFileExists(${1: path/to/file } );
576
+
577
+ snippet asfnex
578
+ $this->assertFileNotExists(${1: path/to/file } );
579
+
580
+ snippet ascon
581
+ $this->assertContains(${1: Search Value } , ${2: Array or Iterator } );
582
+
583
+ snippet ashk
584
+ $this->assertArrayHasKey(${1: key } , ${2: array } );
585
+
586
+ snippet asnhk
587
+ this->assertArrayNotHasKey(${1: value } , ${2: array } );
588
+
589
+ snippet ascha
590
+ $this->assertClassHasAttribute('${1: Attribute Name } ', '${2: ClassName } ');
591
+
592
+ snippet asi
593
+ $this->assertInstanceOf(${1: expected } , ${2: actual } );
594
+
595
+ snippet tc
596
+ public function test${1: name_of_the_test } ()
597
+ {
598
+ ${0: code }
599
+ }
600
+
You can’t perform that action at this time.
0 commit comments