{"action":"created","issue":{"url":"https://api.github.com/repos/theseer/phpdox/issues/250","repository_url":"https://api.github.com/repos/theseer/phpdox","labels_url":"https://api.github.com/repos/theseer/phpdox/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/theseer/phpdox/issues/250/comments","events_url":"https://api.github.com/repos/theseer/phpdox/issues/250/events","html_url":"https://github.com/theseer/phpdox/issues/250","id":108867979,"number":250,"title":"Error when trying to add phpunit coverage to docs","user":{"login":"Nayjest","id":153999,"avatar_url":"https://avatars.githubusercontent.com/u/153999?v=3","gravatar_id":"","url":"https://api.github.com/users/Nayjest","html_url":"https://github.com/Nayjest","followers_url":"https://api.github.com/users/Nayjest/followers","following_url":"https://api.github.com/users/Nayjest/following{/other_user}","gists_url":"https://api.github.com/users/Nayjest/gists{/gist_id}","starred_url":"https://api.github.com/users/Nayjest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nayjest/subscriptions","organizations_url":"https://api.github.com/users/Nayjest/orgs","repos_url":"https://api.github.com/users/Nayjest/repos","events_url":"https://api.github.com/users/Nayjest/events{/privacy}","received_events_url":"https://api.github.com/users/Nayjest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"theseer","id":111333,"avatar_url":"https://avatars.githubusercontent.com/u/111333?v=3","gravatar_id":"","url":"https://api.github.com/users/theseer","html_url":"https://github.com/theseer","followers_url":"https://api.github.com/users/theseer/followers","following_url":"https://api.github.com/users/theseer/following{/other_user}","gists_url":"https://api.github.com/users/theseer/gists{/gist_id}","starred_url":"https://api.github.com/users/theseer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theseer/subscriptions","organizations_url":"https://api.github.com/users/theseer/orgs","repos_url":"https://api.github.com/users/theseer/repos","events_url":"https://api.github.com/users/theseer/events{/privacy}","received_events_url":"https://api.github.com/users/theseer/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-09-29T13:22:11Z","updated_at":"2016-02-24T16:10:50Z","closed_at":null,"body":"PHP Version: 5.6.6 (WINNT)\r\nPHPDox Version: 0.8.1.1\r\nErrorException: E_ERROR\r\nLocation: \r\nphar://C:/Users/user/Dropbox/!CODE/lib/collection/phpdox.phar/phpdox/generator/enricher/phpunit/PHPUnit.php (Line\r\n223)\r\n\r\nCall to a member function getAttribute() on null\r\n\r\nMy config:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<phpdox xmlns=\"http://xml.phpdox.net/config\">\r\n    <project name=\"MyProject\" source=\"${basedir}/src\" workdir=\"${basedir}/build/phpdox/xml\">\r\n        <collector publiconly=\"false\" backend=\"parser\" encoding=\"auto\"/>\r\n        <generator output=\"${basedir}/build/phpdox\">\r\n            <build engine=\"html\" output=\"html\"/>\r\n            <enrich base=\"${basedir}\">\r\n                <source type=\"git\">\r\n                    <history enabled=\"true\" limit=\"15\" cache=\"${phpDox.project.workdir}/gitlog.xml\" />\r\n                </source>\r\n                <source type=\"phpunit\">\r\n                    <coverage path=\"build/phpunit-coverage\" />\r\n                </source>\r\n            </enrich>\r\n            <build engine=\"html\" enabled=\"true\" output=\"html\">\r\n                <template dir=\"${phpDox.home}/templates/html\" />\r\n            </build>\r\n        </generator>\r\n    </project>\r\n</phpdox>\r\n```"},"comment":{"url":"https://api.github.com/repos/theseer/phpdox/issues/comments/188326081","html_url":"https://github.com/theseer/phpdox/issues/250#issuecomment-188326081","issue_url":"https://api.github.com/repos/theseer/phpdox/issues/250","id":188326081,"user":{"login":"lferro9000","id":2652260,"avatar_url":"https://avatars.githubusercontent.com/u/2652260?v=3","gravatar_id":"","url":"https://api.github.com/users/lferro9000","html_url":"https://github.com/lferro9000","followers_url":"https://api.github.com/users/lferro9000/followers","following_url":"https://api.github.com/users/lferro9000/following{/other_user}","gists_url":"https://api.github.com/users/lferro9000/gists{/gist_id}","starred_url":"https://api.github.com/users/lferro9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lferro9000/subscriptions","organizations_url":"https://api.github.com/users/lferro9000/orgs","repos_url":"https://api.github.com/users/lferro9000/repos","events_url":"https://api.github.com/users/lferro9000/events{/privacy}","received_events_url":"https://api.github.com/users/lferro9000/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T16:10:50Z","updated_at":"2016-02-24T16:10:50Z","body":"Just to add some additional information (as i was also fighting with this issue):\r\n\r\ni've most of the build configurations inside a build folder. However, both ant build.xml and phpdox.xml had to be moved to the route of the project (filepath issues otherwise).\r\n\r\nThe relevant line on the PHPUnit configuration is:\r\n\r\n<logging>\r\n    <log type=\"coverage-xml\" target=\"../build/logs/coverage\"/>\r\n</logging>\r\n\r\nWhen you run PHPUnit it will create on the logs/coverage folder and inside it all the xml coverage files.\r\n\r\nEnsure that there are no other files there (i had some leftovers from clover, and it just gives the stated error).\r\n\r\nAnother issue that i found was that phpdox is expecting the xml coverage files inside a coverage folder somewhere, in my case i used on phpdox config (which is on the root of the project):\r\n\r\n            <enrich base=\"${basedir}/build/logs\">\r\n                <source type=\"phpunit\">\r\n                    <coverage path=\"${basedir}/build/logs\" />\r\n                    <!-- @path - the directory where the xml code coverage report can be found -->\r\n                    <filter directory=\"${basedir}/build\" />\r\n                    <!-- @directory - path of the phpunit config whitelist filter directory -->\r\n                </source>\r\n\r\nThis makes the phpdox find most of the configurations for sub-modules in the build/logs folder, and the coverage on the build/logs/coverage folder (where now there should exist an index.xml file, if you runned PHPUnit as stated before).\r\n\r\nDefinitivelly, phpdox doesn't like either the clover or junit coverage files.\r\n\r\nHope this helps with the issue for others. "}}