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

  • SEARCH
  • Home
  • 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 7637117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:51:37+00:00 2026-05-31T07:51:37+00:00

hi im doing a small application in the Zend Framework 1.8 Web Application Development

  • 0

hi im doing a small application in the Zend Framework 1.8 Web Application Development book called storefront.

i have installed PHPUnit, version is PHPUnit 3.6.10 by Sebastian Bergmann. and also i installed apache ant.

as my ebook i create a build folder and run ant command inside of this folder via CMD
(folder contain ant.properties,build.xml files)

i got a BUILD FAILED message when execute ant command, there is a message in test section “unrecognized option –report”

here is my build.xml

 <?xml version="1.0" encoding="UTF-8"?>
<project name="StoreFront" default="build" basedir="../">

    <target name="getProps">
       <property file="${basedir}/build/ant.properties" />

       <condition property="script-suffix" value=".bat" else="">
            <os family="windows" />
       </condition>

       <echo message="---- Build Properties ----" />
       <echo message="" />

       <echo message="OS is ${os.name}" />
       <echo message="Basedir is ${basedir}" />
       <echo message="Property file is ${basedir}/build/ant.properties" />
       <echo message="Script-suffix is ${script-suffix}" />

       <echo message="" />
       <echo message="---- Storefront Properties ----" />
       <echo message="" />

       <echo message="Environment is ${environment}" />    

    </target>

    <target name="test" depends="getProps">
       <exec dir="${basedir}/tests" executable="phpunit${script-suffix}" failonerror="true">
          <arg line="--colors --report ${basedir}/build/report
             --log-xml ${basedir}/build/logs/phpunit.xml 
             --log-pmd ${basedir}/build/logs/phpunit.pmd.xml
             --log-metrics ${basedir}/build/logs/phpunit.metrics.xml
             --coverage-xml ${basedir}/build/logs/phpunit.coverage.xml 
             AllTests.php"/>
       </exec>
    </target>

    <target name="configure" depends="getProps">
       <copy file="${basedir}/application/application.php.dist"
             tofile="${basedir}/application/application.php" overwrite="true" />
       <replace file="${basedir}/application/application.php" token="@ENVIRONMENT@" value="${environment}" />
    </target>

    <target name="buildPreparation">
        <mkdir dir="${basedir}/build/logs" />
        <mkdir dir="${basedir}/build/report" />
    </target>

    <target name="clean">
        <delete dir="${basedir}/build/logs" />
        <delete dir="${basedir}/build/report" />
    </target>

    <target name="build" depends="buildPreparation,configure,test"/>
</project>

here is the message i got in cmd

   C:\wamp\www\storefront\build>ant
Buildfile: C:\wamp\www\storefront\build\build.xml

buildPreparation:

getProps:
     [echo] ---- Build Properties ----
     [echo]
     [echo] OS is Windows 7
     [echo] Basedir is C:\wamp\www\storefront
     [echo] Property file is C:\wamp\www\storefront/build/ant.properties
     [echo] Script-suffix is .bat
     [echo]
     [echo] ---- Storefront Properties ----
     [echo]
     [echo] Environment is development

configure:
     [copy] Copying 1 file to C:\wamp\www\storefront\application

test:
     [exec] PHPUnit 3.6.10 by Sebastian Bergmann.
     [exec]
     [exec] unrecognized option --report

BUILD FAILED
C:\wamp\www\storefront\build\build.xml:28: exec returned: 1

Total time: 0 seconds

C:\wamp\www\storefront\build>phpunit --version
PHPUnit 3.6.10 by Sebastian Bergmann.

how can i fixed this one im just following steps in the book

  • 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-31T07:51:38+00:00Added an answer on May 31, 2026 at 7:51 am

    --report is not a valid command line switch in PHPUnit 3.6.

    Please read the manual for valid options – http://www.phpunit.de/manual/current/en/textui.html#textui.clioptions

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

Sidebar

Related Questions

i am doing one small application , wheich have login functionality, in the user
I have a small project I am doing in Python using web.py. It's a
I am looking at doing a small web application for learning purposes, using .NET.
I've been doing a small web application, adding behaviors and appending DOM objects in
I have developed a small application based on Play Framework (I am still learning).
I am doing a very small online store application in PHP. So I have
I am doing simple forms authentication for a small ASP.NET (3.5, C#) application and
Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we
While doing some small regex task I came upon this problem. I have a
I have a small- to medium-size project that I am doing for my software

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.