PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, December 30, 2021

[FIXED] How can I run unit test script in cakephp shell?

 December 30, 2021     cakephp, cakephp-4.x     No comments   

Issue

In composer.json file php unit is added

"phpunit/phpunit": "^9.5",

I am just trying to run a test script in cmd

In project folder I have given command

vendor/bin/phpunit 

Getting below result

enter image description here

How I will run test script using php unit in cakephp application ? My cakephp version : 4.x


Solution

In windows you have to write the command by back slash not by forward slash.

project>vendor\bin\phpunit


Answered By - Alimon Karim
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing