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 497109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:45:01+00:00 2026-05-13T05:45:01+00:00

I am picking up phpunit. I am at the phpunit.xml file. I want to

  • 0

I am picking up phpunit. I am at the phpunit.xml file.

I want to understand what does each element do.

<testsuite name="application">
    <directory>application</directory>
</testsuite>

Does the directory refers to the dir containing all the *Test.php files?

<filter>
    <whitelist>
        <directory suffix=".php">../application</directory>
        <exclude>
            <directory suffix=".php">../library</directory>
            <directory suffix=".phtml">../application</directory>
            <file>../application/bootstrap.php</file>
            <file>../application/scripts/doctrine.php</file>
        </exclude>
    </whitelist>
</filter>

The whitelist refers to the application files (not test.php) that are supposed to be covered? So in this example, I am saying I want all php files in ../application to be covered, except php files in ../library, phtml files in ../application, and the bootstrap.php and doctrine.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-13T05:45:01+00:00Added an answer on May 13, 2026 at 5:45 am

    Not sure what kind of answer you’re waiting for, but you seem to be right, in both cases.

    For the second point :

    • the idea is to get code coverage for all your PHP files, even those in which there is no tested code : this way, you get some “real” code-coverage (and not only the code coverage on files that are used by tested code).
    • and the exclusions are here so you don’t have code-coverage for the frameworks — there is no point in testing the frameworks, and considering the huge amount of code there are made of, it would influence your code coverage a lot.

    For more informations :

    • PHPUnit manual
    • Test Suites
    • Including and Excluding Files for Code Coverage
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An application that has been working well for months has stopped picking up the
Here's my PS1 variable: PS1='\u:\W$(__git_ps1 \e[32m\][%s]\e[0m\])$ ' Works great for picking up my Git
I understand that these methods are for pickling/unpickling and have no relation to the
Picking up C#, can't seem to find any useful reference to this, other than
Just picking up Objective-C 2.0 and wanted to know if there is any advantage
Still picking my way through learning XAML/WPF. If someone can show me how to
I am picking up C# 4.0 and one of the things which is confusing
I recently started picking up vi , going through some tutorials and trying to
i am actually picking up flex. when i made some Hello World apps, i
I am picking my way through some c# code I inherited, and trying to

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.