cvs: pear /QA_Peardoc_Coverage/QA/Peardoc Coverage.php /QA_Peardoc_Coverage/tests QA_Peardoc_Coverage_ClassListTest.php
| From: | Christian Weiske | Date: | Mon, 30 Oct 2006 21:00:05 +0000 |
| Subject: | cvs: pear /QA_Peardoc_Coverage/QA/Peardoc Coverage.php /QA_Peardoc_Coverage/tests QA_Peardoc_Coverage_ClassListTest.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42900@lists.php.net to get a copy of this message | ||
cweiske Mon Oct 30 21:00:05 2006 UTC
Modified files:
/pear/QA_Peardoc_Coverage/QA/Peardoc Coverage.php
/pear/QA_Peardoc_Coverage/tests
QA_Peardoc_Coverage_ClassListTest.php
Log:
Show classes without methods
http://cvs.php.net/viewvc.cgi/pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php
diff -u pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php:1.4
pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php:1.5
--- pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php:1.4 Mon Oct 30 18:18:58 2006
+++ pear/QA_Peardoc_Coverage/QA/Peardoc/Coverage.php Mon Oct 30 21:00:05 2006
@@ -432,7 +432,6 @@
$strClassDocId = $strBaseId . '.' . strtolower(str_replace('_',
'-', $strClassName));
if (!isset($arDocClasses[$strClassName]) &&
!$this->existsId($strClassDocId)) {
- //FIXME: if classname is the same as package name -> short version
//class is not documented
$arDoc[$strClassName] = null;
continue;
@@ -443,6 +442,8 @@
$arDocMethods[$funcElement->nodeValue] = true;
}
+ $arDoc[$strClassName] = array();
+
//check if methods exist
foreach ($arMethods as $strMethod => $bDocBlock) {
//omit constructors
http://cvs.php.net/viewvc.cgi/pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php
diff -u pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php:1.3
pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php:1.4
--- pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php:1.3 Mon Oct 30 15:00:32
2006
+++ pear/QA_Peardoc_Coverage/tests/QA_Peardoc_Coverage_ClassListTest.php Mon Oct 30 21:00:05 2006
@@ -97,6 +97,19 @@
$this->assertTrue(in_array('MDB2_Module_Common' , $ar2));
}//public function testMDB2()
+
+
+ public function testNetWifi()
+ {
+ $strNetWifiDir = $this->strPearDir . '/Net_Wifi';
+ $this->assertTrue(file_exists($strNetWifiDir));
+ $ar = QA_Peardoc_Coverage_ClassList::getFileList($strNetWifiDir, false);
+
+ $this->assertNotEquals(0, count($ar));
+ $this->assertTrue(in_array('Net/Wifi.php', $ar));
+ $this->assertTrue(in_array('Net/Wifi/Cell.php', $ar));
+ $this->assertTrue(in_array('Net/Wifi/Config.php', $ar));
+ }//public function testNetWifi()
}
// Call QA_Peardoc_Coverage_ClassListTest::main() if this source file is executed directly.