ssejorg / teeeest2

0 stars 0 forks source link

test #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

This is what happens in my setup ...

phpUnit generates ...

<phpunit ...>
  <project name="/var/product">
    <tests>...</tests>
    <directory name="/var/product">
      <totals>...</totals>
      <directory name="source">
        <totals>...</totals>
        <directory name="Product">

... but phpDox looks for ...

//pu:project/pu:directory[@name="/var/product/source"]/pu:directory[@name="Product"]

... which it can't find.

(and yes, my "fix" only worked with flat dir. structure.)

If I instead change src/generator/enricher/phpunit/PHPUnit.php line 84 to ...

$query = sprintf('//pu:project/pu:directory[@name = "%s"]', '/var/product');

... phpDox works fine with subdirs.)