mirror of
https://github.com/php/doc-gtk.git
synced 2026-03-24 00:52:17 +01:00
It has: - Unit tests - Checks interfaces - Checks existing methods for parameters - Generates parameters for new methods correclty now - Does not generate interface methods - less bugs
38 lines
917 B
PHP
38 lines
917 B
PHP
<?php
|
|
/**
|
|
* Test class for the doc updater
|
|
*/
|
|
class DocUpdateTestClass extends GtkWidget implements DocUpdateTestInterface, DocUpdateTestInterface2
|
|
{
|
|
static $staticProperty = 'staticValue';
|
|
protected $normalProperty = 'normalValue';
|
|
public $propertyWithoutValue;
|
|
|
|
public function __construct($a = "b", $c = "d") {}
|
|
|
|
function testfunc($param, $optionalparam = "asd", $optionalparam2 = "asd") { }
|
|
function njuFuncNoParams() { }
|
|
|
|
function alreadyDocced() {}
|
|
|
|
function alreadyDoccedNoVoid() {}
|
|
|
|
function alreadyDoccedWrongParams($param1) {}
|
|
|
|
function alreadyDoccedWrongParams2($param1, $param2 = "whoa") {}
|
|
|
|
public static function staticfunc(GtkNotebook $param1) { }
|
|
|
|
function interfaceFunc() {}
|
|
function interfaceFunc2() {}
|
|
}
|
|
|
|
interface DocUpdateTestInterface
|
|
{
|
|
function interfaceFunc();
|
|
function interfaceFunc2();
|
|
}
|
|
|
|
interface DocUpdateTestInterface2 {}
|
|
|
|
?>
|