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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:40:43+00:00 2026-06-11T08:40:43+00:00

I am having a problem with my PHP project (using the Kohana 3.2 framework)

  • 0

I am having a problem with my PHP project (using the Kohana 3.2 framework) in PHPStorm 4.0.3. When setting up PHPUnit with the Class or Method scope, it is not able to detect the class from the specified unit testing file if the test class extends from Unittest_Database_Testcase.

For example, I could not test the below class because the Choose Test Class dialog box displays “Nothing to show”.

/**
 * Class cannot be chosen.
 */
class A_Test extends Unittest_Database_Testcase {
    public function test_something() { /* ... hence this method test cannot be chosen */ }
}

However, if the file extends from Unittest_Testcase, the class (and subsequently the method) can be detected by PHPStorm and I was able to run the test.

class A_Test extends Unittest_Testcase {
    public function test_something() {}
}

I suspect the reason is that PHPStorm is yet to support running database testing individually. Is there a way to get around this?

Note: I have no problems with running the entire test suite, however, I am concerned that the number of tests are growing. It takes roughly half a second to run a single database test (due to the queries involved) hence it will be very time-consuming to run the entire test suite every time I need to verify a newly-written test is working properly.

  • 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-11T08:40:44+00:00Added an answer on June 11, 2026 at 8:40 am

    For anyone who missed it, the OP found the answer and posted it in the comments…

    I had to manually include Abstract_Class in the bootstrap file. Probably because it was not included automatically when PHPUnit was pointed to the test file.

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

Sidebar

Related Questions

I am having a problem with setting cookie with php. I am trying to
I'm having a problem right now with a function we're using in PHP to
I am using an objected oriented MVC framework in PHP (Kohana) and have kind
I am using HTML Purifier in my PHP project and am having trouble getting
I'm having a problem with php's for loop. The loop iterates too fast and
I'm having a problem with a PHP website running on IIS 7 on Windows
I am having one problem with the PHP json_encode function. It encodes numbers as
I'm having a problem with a query prepared in PHP with PDO. The code:
I'm having a problem with some code that used to work in PHP 4.X
I'm having a problem with my ajax call. I'm submitting some info via php

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.