PhpUnit passes NULL to dependency
===

I have something like the following in a phpunit test :-

      /** 
       * @dataProvider getFields
       */
      public function testCanDoSomeStuff($parm1, $parm2) {
        $result = my_func($parm1, $parm2);
        $this->assertNotNull($result);
    
        return $result;
      }
    
      /**
       * @depends testCanDoSomeStuff
       */
      public function testCanDoSomeMoreStuff($result) {
        $this->assertNotNull($result);
      }

I also have a getFields() data provider function, no need to show that here.

The first test that relies on the data provider passes - $result is NOT null.

I expect that the result of the test will be passed to the dependent test as the 'result' parameter.

However, the testCanDoSomeMoreStuff function receives a NULL parameter and the test fails.

Any ideas?

Thanks.