Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6095865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:51:38+00:00 2026-05-23T12:51:38+00:00

I use windows. For example I have some website with a structure smth like

  • 0

I use windows.
For example I have some website with a structure smth like this:

site/
    engine/
       ModelClass.php
    www/
       index.php
    tests/
       ModelCalssTest.php
phpunit.bat

Where should be store phpunit.bat to run test ModelClassTest.php?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:51:39+00:00Added an answer on May 23, 2026 at 12:51 pm

    You should not need to store a phpunit.bat at all. It should be in your PATH.

    Just install it via PEAR and be done. If you don’t want to do that and you have it locally on the system or your WANT the phpunit sources in your version control (some people want that) it doesn’t matter where your phpunit.bat is really. Project root is fine, somewhere in vendor/phpunit/phpunit.bat is fine too if you have an ant or phing or .bat file in your project root that lets you say "run tests now".


    What i currently observe as “best-practice” is to put your phpunit.xml.dist (the config file) in your application root so that people can just:

    • get the source
    • type phpunit
    • see that everything works

    See: a sample project made by the phpunit author

    What I’ve also seen is that people put that config file in their “tests” folder to have a “clean project root”. Also works out nicely.

    References: Documentation on the phpunit xml file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some .NET code I use from VB6 code. I have always developed
I have some customers/candidate who complained that my program doesn't work on their Windows
In GWT apparently you have to use some Flash-component to alter the clipboard. Since
I've got an issue involving a website that I have been using VS 2008
I have built a touch screen application using Windows Forms. It works great but
I have a website (here: http://kitandmarcin.us ) with links to a variety of external
I will create an ASP.NET Web Application like this; Users can login their own
I hope someone can help me. I have a website that uses javascript to
I do know that in javascript, when you use this keyword inside a function,
update Here is the situation: I'm working on a website that has no physical

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.