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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -