Note that there are some explanatory texts on larger screens.

plurals
  1. POZend Framework and phpunit strange error
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/8215580/zend-cannot-find-phpunit-framework-php">Zend - cannot find PHPUnit/framework.php</a> </p> </blockquote> <p>I'm getting some strange warnings and errors, and I don't know why, maybe you had this problem too and found a solution.</p> <p><strong>I'm testing a model</strong></p> <pre><code>class UsersTest extends PHPUNit_Framework_TestCase { public function testCanCheckUser(){ $user = Users::getInstance(); $userNotFound = true; $this-&gt;assertFalse($userNotFound); } } </code></pre> <p><strong>So here is the error that I'm getting:</strong></p> <pre><code>PHP Strict Standards: Creating default object from empty value in C:\Users\Lili \Dropbox\www\_playground\myApp\application\Bootstrap.php on line 207 PHPUnit 3.7.9 by Sebastian Bergmann. Configuration read from C:\Users\Lili\Dropbox\www\_playground\myApp\tests\phpuni t.xml ←[41;37mF←[0m Time: 0 seconds, Memory: 5.50Mb There was 1 failure: 1) UsersTest::testCanCheckUser PHP Warning: include_once(PHP\Invoker.php): failed to open stream: No such file or directory in C:\Users\Lili\Dropbox\www\_playground\myApp\Zend\Loader.php on line 146 PHP Warning: include_once(): Failed opening 'PHP\Invoker.php' for inclusion (in clude_path='C:\xampp\php\PEAR\PHPUnit;C:\Users\Lili\Dropbox\www\_playground\opun y\application/../library;C:\Users\Lili\Dropbox\www\_playground\myApp\application ;C:\Users\Lili\Dropbox\www\_playground\myApp\application/models;C:\Users\Lili\Dr opbox\www\_playground\myApp\application/../;.;C:\xampp\php\PEAR') in C:\Users\Li li\Dropbox\www\_playground\myApp\Zend\Loader.php on line 146 PHP Warning: include_once(PHPUnit\Extensions\SeleniumTestCase.php): failed to o pen stream: No such file or directory in C:\Users\Lili\Dropbox\www\_playground\o puny\Zend\Loader.php on line 146 PHP Warning: include_once(): Failed opening 'PHPUnit\Extensions\SeleniumTestCas e.php' for inclusion (include_path='C:\xampp\php\PEAR\PHPUnit;C:\Users\Lili\Drop box\www\_playground\myApp\application/../library;C:\Users\Lili\Dropbox\www\_play ground\myApp\application;C:\Users\Lili\Dropbox\www\_playground\myApp\application /models;C:\Users\Lili\Dropbox\www\_playground\myApp\application/../;.;C:\xampp\p hp\PEAR') in C:\Users\Lili\Dropbox\www\_playground\myApp\Zend\Loader.php on line 146 PHP Warning: include_once(PHPUnit\Extensions\Story\TestCase.php): failed to ope n stream: No such file or directory in C:\Users\Lili\Dropbox\www\_playground\opu ny\Zend\Loader.php on line 146 PHP Warning: include_once(): Failed opening 'PHPUnit\Extensions\Story\TestCase. php' for inclusion (include_path='C:\xampp\php\PEAR\PHPUnit;C:\Users\Lili\Dropbo x\www\_playground\myApp\application/../library;C:\Users\Lili\Dropbox\www\_playgr ound\myApp\application;C:\Users\Lili\Dropbox\www\_playground\myApp\application/m odels;C:\Users\Lili\Dropbox\www\_playground\myApp\application/../;.;C:\xampp\php \PEAR') in C:\Users\Lili\Dropbox\www\_playground\myApp\Zend\Loader.php on line 1 46 Failed asserting that true is false. C:\Users\Lili\Dropbox\www\_playground\myApp\tests\application\models\UsersTest.p hp:13 ←[37;41m←[2KFAILURES! ←[0m←[37;41m←[2KTests: 1, Assertions: 1, Failures: 1. ←[0m←[2K </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload