cvs: php-gtk-doc /updater/tests DocUpdateTestClass.php DocUpdateTestClass.xml DocUpdateTestClassTest.php

From: Date: Sun, 08 Oct 2006 12:10:17 +0000
Subject: cvs: php-gtk-doc /updater/tests DocUpdateTestClass.php DocUpdateTestClass.xml DocUpdateTestClassTest.php
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-2919@lists.php.net to get a copy of this message
cweiske Sun Oct 8 12:10:17 2006 UTC Added files: /php-gtk-doc/updater/tests DocUpdateTestClass.php DocUpdateTestClass.xml DocUpdateTestClassTest.php Log: Basic unit test files for testing the doc updater. No test currently, but I hope to get to add some tomorrow. Feel free to make some http://cvs.php.net/viewvc.cgi/php-gtk-doc/updater/tests/DocUpdateTestClass.php?view=markup&rev=1.1 Index: php-gtk-doc/updater/tests/DocUpdateTestClass.php +++ php-gtk-doc/updater/tests/DocUpdateTestClass.php <?php /** * Test class for the doc updater */ class DocUpdateTestClass extends GtkWidget implements DocUpdateTestInterface { static $staticProperty = 'staticValue'; protected $normalProperty = 'normalValue'; public $propertyWithoutValue; public function __construct($a = "b", $c = "d") {} protected function test($param, $optionalparam = "asd", $optionalparam2 = "asd") { } private function privFunc() {} public static function staticfunc(GtkNotebook $param1) { } function interfaceFunc() {} } interface DocUpdateTestInterface { function interfaceFunc(); } ?> http://cvs.php.net/viewvc.cgi/php-gtk-doc/updater/tests/DocUpdateTestClass.xml?view=markup&rev=1.1 Index: php-gtk-doc/updater/tests/DocUpdateTestClass.xml +++ php-gtk-doc/updater/tests/DocUpdateTestClass.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <classentry id="gtk.docupdatetestclass"> <classmeta> <classtitle>DocUpdateTestClass</classtitle> <classparent>GtkWidget</classparent> <shortdesc> </shortdesc> <desc> </desc> </classmeta> <constructors> <constructor id="gtk.docupdatetestclass.constructor"> <funcsynopsis> <funcprototype> <funcdef> <function>GtkAccelLabel</function></funcdef> <paramdef>string <parameter>label</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> </shortdesc> <desc> </desc> </constructor> </constructors> <methods> <method id="gtk.docupdatetestclass.method.accelerator_width"> <funcsynopsis> <funcprototype> <funcdef>int <function>accelerator_width</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> DEPRECATED. </shortdesc> <desc> <para> DEPRECATED. Use <function class="GtkAccelLabel">get_accel_width</function> instead. </para> </desc> </method> </methods> </classentry> http://cvs.php.net/viewvc.cgi/php-gtk-doc/updater/tests/DocUpdateTestClassTest.php?view=markup&rev=1.1 Index: php-gtk-doc/updater/tests/DocUpdateTestClassTest.php +++ php-gtk-doc/updater/tests/DocUpdateTestClassTest.php <?php // Call DocUpdateTestClassTest::main() if this source file is executed directly. if (!defined("PHPUnit2_MAIN_METHOD")) { define("PHPUnit2_MAIN_METHOD", "DocUpdateTestClassTest::main"); } require_once "PHPUnit2/Framework/TestCase.php"; require_once "PHPUnit2/Framework/TestSuite.php"; class DocUpdateTestClassTest extends PHPUnit2_Framework_TestCase { protected static $tmpFile = '/tmp/DocUpdateTestClass.xml'; public static function main() { require_once 'PHPUnit2/TextUI/TestRunner.php'; $suite = new PHPUnit2_Framework_TestSuite("DocUpdateTestClassTest"); $result = PHPUnit2_TextUI_TestRunner::run($suite); } /** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @access protected */ protected function setUp() { chdir(dirname(__FILE__)); copy('DocUpdateTestClass.xml', self::$tmpFile); passthru('../doUpdate.sh ' . self::$tmpFile); } /** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * @access protected */ protected function tearDown() { unlink(self::$tmpFile); } function test_simpleadd() { readfile(self::$tmpFile); } } // Call DocUpdateTestClassTest::main() if this source file is executed directly. if (PHPUnit2_MAIN_METHOD == "DocUpdateTestClassTest::main") { DocUpdateTestClassTest::main(); } ?>

« previous php.gtk.doc (#2919) next »