diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-08 17:26:11 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-08 17:26:11 +0200 |
commit | 6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0 (patch) | |
tree | 468e38161d822e90e7d8f5b27d333273966fd890 /inc/Form/InputElement.php | |
parent | e7a32b176701c088bab045437819448bb9adad41 (diff) | |
download | rpg-6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0.tar.gz rpg-6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0.tar.bz2 |
added a first few tests.
this is far from comprehensible, but should give an idea how the new
library works and how to write tests
Diffstat (limited to 'inc/Form/InputElement.php')
-rw-r--r-- | inc/Form/InputElement.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/Form/InputElement.php b/inc/Form/InputElement.php index 59310174e..4f644c0f1 100644 --- a/inc/Form/InputElement.php +++ b/inc/Form/InputElement.php @@ -28,6 +28,7 @@ class InputElement extends Element { public function __construct($type, $name, $label) { parent::__construct($type, array('name' => $name)); $this->attr('name', $name); + $this->label = new Label($label); } /** |