php - How can I run phpunit tests within Visual Studio? -


so far, have simple test:

public function testcreateuser () {     $username = 'john';     $password = 'pass123';      $this->db         ->expects($this->once())         ->method('insert')         ->with(             $username,              md5($password)         );      newuser($this->db, $username, $password); } 

i want run test in visual studio, followed instructions press ctrl + shift + p.

but phpunit --filter testcreateuser ./test/tests/test.php.

the page code called test.php

i want know correct way run tests in vs code.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -