Re: PHPUnit is not finding the Classes of the source under test

  • From: Tomas Mysik < >
  • To:
  • Subject: Re: PHPUnit is not finding the Classes of the source under test
  • Date: Mon, 09 Dec 2013 11:29:11 +0100
  • Organization: Oracle Corporation

Hi,

Dne 9.12.2013 03:52, rimcrazy napsal(a):
>  When I go to the Ouput tab it is clear that the class 'Calculator' is not 
> found.

you have to add:

require '/path/to/your/Calculator.php';

to your test file. Or you can use a bootstrap file with proper
autoloading, of course.

BTW it is not strange, run the same command from command line and the
result will be the same (this is what NetBeans does exactly, simply runs
the external command).

Tomas


PHPUnit is not finding the Classes of the source under test

rimcrazy 12/09/2013

Re: PHPUnit is not finding the Classes of the source under test

Tomas Mysik 12/09/2013

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 236 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close