summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-18 22:41:18 +0600
committervalmat <ufabiz@gmail.com>2014-03-18 22:41:18 +0600
commitda5521c2c168edc48e7d2b5dd12305c9dec85b7b (patch)
treed1ff42f6b6f8d6aa68f88319506aba91394aded0 /tests
parentce1624b0be45aa12a95e22739185c70226d57b1b (diff)
Cannot accidentally delete :)
Diffstat (limited to 'tests')
-rw-r--r--tests/php/include/check.php11
-rw-r--r--tests/php/include/set_get.php52
2 files changed, 0 insertions, 63 deletions
diff --git a/tests/php/include/check.php b/tests/php/include/check.php
deleted file mode 100644
index c38b70d..0000000
--- a/tests/php/include/check.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-require '../../../php/class.screennav.php';
-require '../files/set_get.php';
-
-$scr = new ScreenNav(5, 8456, 'http://some/url');
-
-ScrNavTestSetGet::get($scr);
-
-
-//echo var_dump(ScreenNav::pageNo('part')) .PHP_EOL; \ No newline at end of file
diff --git a/tests/php/include/set_get.php b/tests/php/include/set_get.php
deleted file mode 100644
index 8f596ba..0000000
--- a/tests/php/include/set_get.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-class ScrNavTestSetGet {
-
- static function set(&$scr) {
-
- $scr->setInterval(21); // Сколько объектов на странице
- $scr->setPrefix('?qwe&part='); // URL prefix
- $scr->setPostfix('&prm=132'); // URL prefix
- //$scr->setSpace('<space>...</space>'); // Разделитель блоков табов
- //$scr->setCssName('newClassName'); // Имя класса css блока управления постраничным выводом
- $scr->setMidTab(15); // см. info.png
- $scr->setMaxTab(5); // см. info.png
- $scr->showCount(true); // Показывать ли общее количество элементов
-
- }
-
- static function set1(&$scr) {
-
- $scr->setInterval(21); // Сколько объектов на странице
- $scr->setPrefix('?qwe&part='); // URL prefix
- $scr->setPostfix('&prm=132'); // URL prefix
- $scr->setSpace('<space>...</space>'); // Разделитель блоков табов
- $scr->setCssName('newClassName'); // Имя класса css блока управления постраничным выводом
- $scr->setMidTab(15); // см. info.png
- $scr->setMaxTab(5); // см. info.png
- $scr->showCount(false); // Показывать ли общее количество элементов
-
- }
-
- static function get(&$scr) {
-
- self::get1($scr);
- echo $scr->show();
-
- }
-
- static function get1(&$scr) {
-
- var_export(array(
- 'StartPos' => $scr->getStartPos(),
- 'LimitPos' => $scr->getLimitPos(),
- 'PageCnt' => $scr->getPageCnt(),
- 'PageNo' => $scr->getPageNo(),
- 'start' => $start = $scr->getStartPos(),
- 'lim' => $start+$scr->getLimitPos()
- ));
-
- }
-
-
-} \ No newline at end of file