Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Do not echo stuff, these are unit tests.

git-svn-id: http://svn.php.net/repository/pear/packages/DB_NestedSet/trunk@321982 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 1e099a93460f8a9b550d8e523a93706a2cf3892f 1 parent a98854c
Daniel Convissor authored
10 tests/DB/NestedSet/TestCase.php
@@ -108,14 +108,14 @@ function _moveTree__Across($branches, $mvt, $nodecount) {
108 108 if ($p['id'] != $mnode['parent']) {
109 109 // <DEBUG>
110 110 // <DEBUG>
111   - echo "\n<pre>\n";
  111 + // echo "\n<pre>\n";
112 112 print_r($p);
113   - echo "\n</pre>\n";
  113 + // echo "\n</pre>\n";
114 114 // </DEBUG>
115 115 // <DEBUG>
116   - echo "\n<pre>\n";
  116 + // echo "\n<pre>\n";
117 117 print_r($mnode);
118   - echo "\n</pre>\n";
  118 + // echo "\n</pre>\n";
119 119 // </DEBUG>
120 120 // </DEBUG>
121 121 }
@@ -518,6 +518,8 @@ function _traverseChildRelations($relationTree, $nid, $deep = false, $init = fal
518 518 }
519 519
520 520 function _indentTree($tree) {
  521 + return;
  522 +
521 523 echo "\n";
522 524 foreach($tree AS $nid => $node) {
523 525 printf('%s %02d-%02d [%02d|%02d|%02d] | %s (%s)',
22 tests/DB_NestedSet_APITest.php
@@ -7,7 +7,7 @@ function test_sortMethods() {
7 7
8 8 // Rootnodes
9 9
10   - echo "<code>";
  10 + // echo "<code>";
11 11 $values['STRNA'] = 'Skireisen';
12 12 $skireisen = $this->_NeSe->createRootNode($values, false, true);
13 13
@@ -34,36 +34,36 @@ function test_sortMethods() {
34 34 $meransen = $this->_NeSe->createSubNode($italien, $values);
35 35
36 36
37   - echo "DEFAULT\n";
  37 + // echo "DEFAULT\n";
38 38 $this->_NeSe->setSortMode(NESE_SORT_LEVEL);
39 39 $allnodes_default = $this->_NeSe->getAllNodes(true);
40 40 $this->_indentTree($allnodes_default);
41 41
42   - echo "BY NAME\n";
  42 + // echo "BY NAME\n";
43 43 $this->_NeSe->setSortMode(NESE_SORT_LEVEL);
44 44 $this->_NeSe->secondarySort = 'STRNA';
45 45 $allnodes_byname = $this->_NeSe->getAllNodes(true);
46 46 $this->_indentTree($allnodes_byname);
47 47
48   - echo "PREORDER\n";
  48 + // echo "PREORDER\n";
49 49 $this->_NeSe->setSortMode(NESE_SORT_PREORDER);
50 50 $this->_NeSe->secondarySort = 'STREH';
51 51 $allnodes_preorder = $this->_NeSe->getAllNodes(true);
52 52 $this->_indentTree($allnodes_preorder);
53 53
54   - echo "BY NAME PREORDER\n";
  54 + // echo "BY NAME PREORDER\n";
55 55 $this->_NeSe->setSortMode(NESE_SORT_PREORDER);
56 56 $this->_NeSe->secondarySort = 'STRNA';
57 57 $allnodes_byname_pre = $this->_NeSe->getAllNodes(true);
58 58 $this->_indentTree($allnodes_byname_pre);
59 59
60   - echo "BY NAME PREORDER getSubBranch\n";
  60 + // echo "BY NAME PREORDER getSubBranch\n";
61 61 $this->_NeSe->setSortMode(NESE_SORT_PREORDER);
62 62 $this->_NeSe->secondarySort = 'STRNA';
63 63 $allnodes_preorder = $this->_NeSe->getSubBranch($oesterreich, true);
64 64 $this->_indentTree($allnodes_preorder);
65 65
66   - echo "BY NAME PREORDER getSubBranch empty subbranch\n";
  66 + // echo "BY NAME PREORDER getSubBranch empty subbranch\n";
67 67 $this->_NeSe->setSortMode(NESE_SORT_PREORDER);
68 68 $this->_NeSe->secondarySort = 'STRNA';
69 69 $allnodes_preorder = $this->_NeSe->getSubBranch($grindelwald, true);
@@ -71,18 +71,18 @@ function test_sortMethods() {
71 71
72 72
73 73
74   - echo "TRYING getBranch()\n";
  74 + // echo "TRYING getBranch()\n";
75 75 $atbranch = $this->_NeSe->getBranch($oesterreich, true);
76 76 $this->_indentTree($atbranch);
77 77
78   - echo "TRYING getChildren()\n";
  78 + // echo "TRYING getChildren()\n";
79 79 $atbranch = $this->_NeSe->getChildren($oesterreich, true);
80 80 $this->_indentTree($atbranch);
81 81
82   - echo "TRYING getSubBranch()\n";
  82 + // echo "TRYING getSubBranch()\n";
83 83 $atbranch = $this->_NeSe->getSubBranch($skireisen, true);
84 84 $this->_indentTree($atbranch);
85   - echo "</code>";
  85 + // echo "</code>";
86 86 }
87 87
88 88 function test_convertModel() {

0 comments on commit 1e099a9

Please sign in to comment.
Something went wrong with that request. Please try again.