From ef2989e39255dba36cbbf20a1c5400fe7667ed26 Mon Sep 17 00:00:00 2001 From: tof <> Date: Fri, 14 Mar 2008 11:37:04 +0000 Subject: New test case for Ticket #671 --- .../tickets/protected/pages/Ticket671_reopened.php | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php b/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php new file mode 100644 index 00000000..ae45bf96 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket671_reopened.php @@ -0,0 +1,39 @@ +isValid ) + $txt .= "DATA OK"; + else + $txt .= "DATA NOK"; + $this->Result->Text.= ' --- ' . $txt; + } + + public function check( $sender, $param ) + { + //$c=$this->CheckCount; + $this->Result->Text="Check callback called (".++$this->CheckCount.")"; + //$this->CheckCount=$c; + if ( $this->testField->getText() == 'Test' ) + $param->isValid = true; + else + $param->isValid = false; + } + + public function setCheckCount($value) + { + $this->setViewState('CheckCount', $value); + } + + public function getCheckCount() + { + return $this->getViewState('CheckCount', 0); + } +} +?> \ No newline at end of file -- cgit v1.2.3