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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:42:28+00:00 2026-06-10T20:42:28+00:00

I am trying to use Zend Test and PHPUnit to test an application I’ve

  • 0

I am trying to use Zend Test and PHPUnit to test an application I’ve built. I’m just in the early stages of getting things setup and have run into some problems (see this fun problem). But besides PHPUnit not being able to write the log file for whatever reason, the tests do run just fine (seemingly). However, if I try to use $this->assertResponseCode(200, 'some message'); I get the following error:

Declaration of Zend_Test_PHPUnit_Constraint_ResponseHeader::evaluate() should be compatible with PHPUnit_Framework_Constraint::evaluate($other, $description = '', $returnResult = false)

I’ve looked at the Zend Test code, and I’m pretty sure I’m passing the correct parameters. I’ve also searched for my issues and found this question. Any ideas on what I’m doing wrong?

I’m running the latest PHPUnit (3.6.12) from here and PHP 5.4 on Windows.

  • 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-06-10T20:42:29+00:00Added an answer on June 10, 2026 at 8:42 pm

    From http://framework.zend.com/issues/browse/ZF-11828:

    Closing as won’t fix due to a collection of reasons:

    Matthew has stated repeatedly that PHPUnit 3.4.x is the officially-supported version of ZFv1
    Repeated attempts (both official and unofficial) have not yielded a workable PHAR archive of PHPUnit 3.4.x which could be bundled with ZFv1
    Alternate solutions exist (ie: altroot PEAR install + PHPUnit 3.4.x)

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

Sidebar

Related Questions

I have been trying to use PHPUnit to test an application. I have it
I am trying to use PHPUnit/DBUnit to test my Zend Framework DbTable models. I
I am trying use gem tire to search in my application. I have tables
I'm trying to use Zend_acl in my application. I followed the Zend Framework in
I am trying to create my first unit test. I use Zend Studio, and
I'm trying to use the Zend twitter service in codeigniter. I have used the
I have just encountered something rather strange, I use the Zend Framework 1.10 with
I have my own lib at folder classes. I am trying to use Zend
I'm trying to use PHPUnit to unit test some class methods that return SQL.
I am trying to use the new Eventmanager of the Zend Framework 2. I

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.