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
Post a Comment