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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:29:34+00:00 2026-06-10T07:29:34+00:00

I am using the book: Agile Web Application Development with Yii 1.1 and PHP5

  • 0

I am using the book: “Agile Web Application Development with Yii 1.1 and PHP5” to get started with Yii.

While setting up my TDD environment and running my first test, the following warnings pop up:

sl@cker:/var/www/demo/protected/tests$ phpunit functional/SiteTest.php
PHPUnit 3.6.12 by Sebastian Bergmann.

Configuration read from /var/www/demo/protected/tests/phpunit.xml

PHP Warning:  include(SiteTest: Firefox.php): failed to open stream: No such file or directory in /var/www/framework/YiiBase.php on line 423
PHP Warning:  include(): Failed opening 'SiteTest: Firefox.php' for inclusion (include_path='.:/var/www/demo/protected/components:/var/www/demo/protected/models:/usr/share/php:/
usr/share/pear') in /var/www/framework/YiiBase.php on line 423
...PHP Warning:  include(SiteTest: Firefox.php): failed to open stream: No such file or directory in /var/www/framework/YiiBase.php on line 423
PHP Warning:  include(): Failed opening 'SiteTest: Firefox.php' for inclusion (include_path='.:/var/www/demo/protected/components:/var/www/demo/protected/models:/usr/share/php:/
usr/share/pear') in /var/www/framework/YiiBase.php on line 423


Time: 44 seconds, Memory: 8.25Mb

OK (3 tests, 10 assertions)

Does anyone know how I can fix this, or can I just ignore those warnings? The book doesn’t say anything about a file named: Firefox.php. The tests did run in Firefox though.

Extra info:

  • PHP Version 5.3.10
  • Platform: Ubuntu 12.04
  • Server: Apache/2.2.22
  • PHPUnit version: 3.6.12
  • Selenium version: 2.25.0
  • Yii version: v1.1.12

(all are the latest stable versions)

  • 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-10T07:29:35+00:00Added an answer on June 10, 2026 at 7:29 am

    Ok.. I’ve solved it. I just answer my own question in case someone else bumps into this problem.

    The solution is as follows.

    Change phpunit.xml into:

    <phpunit bootstrap="bootstrap.php"
            colors="false"
            convertErrorsToExceptions="true"
            convertNoticesToExceptions="true"
            convertWarningsToExceptions="true"
            stopOnFailure="false">
    
        <selenium>
            <!-- <browser name="Firefox" browser="*firefox" /> -->
        </selenium>
    
    </phpunit>
    

    And change WebTestCase.php into:

    <?php
    
    /**
     * Change the following URL based on your server configuration
     * Make sure the URL ends with a slash so that we can use relative URLs in test cases
     */
    define('TEST_BASE_URL','http://localhost/demo/index-test.php/');
    
    /**
     * The base class for functional test cases.
     * In this class, we set the base URL for the test application.
     * We also provide some common methods to be used by concrete test classes.
     */
    class WebTestCase extends CWebTestCase
    {
        /**
         * Sets up before each test method runs.
         * This mainly sets the base URL for the test application.
         */
        protected function setUp()
        {
            parent::setUp();
            $this->setBrowser('*firefox');
            $this->setBrowserUrl(TEST_BASE_URL);
        }
    }
    

    Your output will be:

    sl@cker:/var/www/demo/protected/tests$ phpunit functional/SiteTest.php
    PHPUnit 3.6.12 by Sebastian Bergmann.
    
    Configuration read from /var/www/demo/protected/tests/phpunit.xml
    
    ...
    
    Time: 32 seconds, Memory: 8.25Mb
    
    OK (3 tests, 10 assertions)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newb to RoR. I'm using the book Agile Web Development with Rails
I just started learning ruby on rails. I'm using 'Agile Web Development with Rails,
I'm new to ruby on rails so i'm using the book Agile Web Development
I'm working with an Agile Web Development book to learn Rails, and it's using
Just working through the Agile Web Development with Rails book and near the closing
I am working through the Agile Web Development with Rails book but I have
Following some code in Agile Web Development book, theres a method to redirect back
I'm using a book called Android Wireless Application Development 2nd edition 2009 (L.Darcey &
In the Agile Web Development book, it is suggested to make a unit test
I have methodically been working thru the Agile Web Development with Rails book. No

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.