X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fconsolidation%2Foutput-formatters%2Ftests%2FtestAPIDocs.php;fp=vendor%2Fconsolidation%2Foutput-formatters%2Ftests%2FtestAPIDocs.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=ecb5eb04375ce9911afd3907f9cb0704c3d96597;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/consolidation/output-formatters/tests/testAPIDocs.php b/vendor/consolidation/output-formatters/tests/testAPIDocs.php deleted file mode 100644 index ecb5eb043..000000000 --- a/vendor/consolidation/output-formatters/tests/testAPIDocs.php +++ /dev/null @@ -1,32 +0,0 @@ -markTestIncomplete( - 'API generation has slight variations when run on CI server. This test is therefore skipped on CI until we can make the test results consistent.' - ); - } - - $testDocs = tempnam(sys_get_temp_dir(), 'TestAPIDocs.md'); - $currentDocs = getcwd() . '/docs/api.md'; - passthru("vendor/bin/phpdoc-md generate src > $testDocs"); - - $testDocsContent = file_get_contents($testDocs); - $currentDocsContent = file_get_contents($currentDocs); - - $testDocsContent = str_replace (array("\r\n", "\r"), "\n", $testDocsContent); - $currentDocsContent = str_replace (array("\r\n", "\r"), "\n", $currentDocsContent); - - $this->assertEquals($testDocsContent, $currentDocsContent, "API docuementation out of date. Run 'composer api' to update."); - } -}