Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing PHPUnit with CakePHP on IIS 7 over Windows
    primarykey
    data
    text
    <p>I am having troubles trying to make PHPUnit work over IIS 7 and Windows 7. I am getting this error when trying to test if it works accessing to <code>http://localhost/your_app/test.php</code> <a href="http://book.cakephp.org/2.0/en/development/testing.html#checking-the-test-setup" rel="nofollow noreferrer">as pointed in the documentation</a>:</p> <blockquote> <p>Missing Controller</p> <p>Error: Test.php&amp;debug=1Controller could not be found. Error: Create the class Test.php&amp;debug=1Controller below in file: app\Controller\Test.php&amp;debug=1Controller.php <p>}</p> <p>Notice: If you want to customize this error message, create app\View\Errors\missing_controller.ctp Stack Trace APP\webroot\index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse) ROOT\index.php line 42 → require(string)</p> </blockquote> <p>I have been lookin at <a href="https://stackoverflow.com/questions/16309260/cakephp-core-tests-not-working-on-iis">this other topic</a> but his solution doesn't work for me.</p> <p>I have installed Pear using this commands: </p> <pre><code>pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com pear install phpunit/PHPUnit-3.6.4 </code></pre> <p>And it seems it has been installed successfully: <img src="https://i.stack.imgur.com/nVG2v.png" alt="enter image description here"></p> <p>I have edited <code>php.ini</code>, and added the the <code>pear</code> directory to the <code>include_path</code>:</p> <pre><code>; Windows: "\path1;\path2" include_path = ".;c:\php\pear" </code></pre> <p>My rewrite rules on IIS 7 are the following ones ( I just imported them in IIS from the .htaccess files): <img src="https://i.stack.imgur.com/T8s79.png" alt="enter image description here"></p> <p>It seems to be a rewrite rule problem as it seems to be looking for a controller when it shouldn't.</p> <p>Any idea about how to solve this? Thanks.</p>
    singulars
    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.
    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