Mantis - Quercus
Viewing Issue Advanced Details
3394 block always 03-16-09 18:38 05-02-14 17:26
koreth  
nam  
normal  
closed 4.0.10  
unable to reproduce  
none    
none  
0003394: PHPUnit data providers not being called
This was working at one point, but seems to have regressed.

<?php
include_once 'PHPUnit/Framework.php';

class MyTest extends PHPUnit_Framework_TestCase {
  public function myfunc() {
    return array(array('bar'));
  }

  /**
   * @dataProvider myfunc
   */
  public function testIt($foo) {
    $this->assertEquals('bar', $foo);
  }
}


The test fails under Quercus but passes under regular PHP.

Notes
(0003990)
koreth   
05-08-09 00:17   
This is still an issue and is preventing me from passing our unit test suite under Quercus.
(0003991)
nam   
05-08-09 12:59   
I think this is an instanceof regression. I'll check in a fix later today.
(0004764)
domdorn   
09-28-10 10:27   
Taking over this bug.

Is this still an issue for you?
Could you please try with the latest quercus release?
http://caucho.com/download/quercus-4.0.10.war [^]