Using CakePHP 2.0.6
PHPUnit 3.6.10

I am just trying to get past this fatal error:

Running ApplicationsControllerTest

Fatal error: Cannot redeclare Mock_CakeRequest_744a88c3::offsetUnset()
in /usr/local/lib/php/PHPUnit/Framework/MockObject/
Generator.php(218) : eval()'d code on line 539


Test code:
<?php
class ApplicationsControllerTest extends ControllerTestCase {

   public function testIndex() {
           $result = $this->testAction('/applications/index');
           debug($result);
   }
}
?>

The controller code is:

class ApplicationsController extends AppController
{
        public $name                    = 'Applications';
        public $helpers         = array('Js' => array('Jquery'));
        public $client                  = 0;
        public $error                   = '';
        public $components      = array('Email');
        public $testMode                = false;
        public $uses                    = array('Applications', 'Applicants');


        public function index() {
                $this->layout = 'admin';
        }
}

The testAction call is producing the error.  I am stuck - any
assistance would be greatly appreciated!

Thank you,
Jonathan

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to