This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

CloCkWeRX

By: a guest on Nov 6th, 2008  |  syntax: None  |  size: 24.09 KB  |  views: 138  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ? tests.diff.txt
  2. Index: tests/setup.php
  3. ===================================================================
  4. RCS file: /repository/pear/Auth_PrefManager/tests/setup.php,v
  5. retrieving revision 1.2
  6. diff -u -r1.2 setup.php
  7. --- tests/setup.php     15 Jun 2007 05:45:19 -0000      1.2
  8. +++ tests/setup.php     6 Nov 2008 11:23:30 -0000
  9.  -7,6 +7,14 @@
  10.  $dsn = "pgsql://test:test@unix(/var/run/postgresql/)/test";
  11.  $tableName = null;
  12.  
  13. +$db = &DB::connect($dsn);
  14. +
  15. +if (DB::isError($db)) {
  16. +    if ($db->getMessage() == "DB Error: extension not found") {
  17. +        die("Skip You don't have the extension you need to connect to this database with the given DSN");
  18. +    }
  19. +}
  20. +
  21.  function createDatabase($defaultPrefs = array(), $tableName = null, $fieldNames = null) {
  22.  
  23.      $names = array(
  24.  -22,7 +30,7 @@
  25.          $tableName = basename($_SERVER['SCRIPT_FILENAME'], ".php");
  26.  
  27.      $db = &DB::connect($GLOBALS['dsn']);
  28. -
  29. +var_dump($GLOBALS['dsn']);
  30.      if (DB::isError($db)) {
  31.  
  32.          print "Failure connecting to database.\n"
  33. Index: tests/deleteDefaultPref/database-error-pear.phpt
  34. ===================================================================
  35. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/database-error-pear.phpt,v
  36. retrieving revision 1.1
  37. diff -u -r1.1 database-error-pear.phpt
  38. --- tests/deleteDefaultPref/database-error-pear.phpt    18 Jun 2007 02:38:19 -0000      1.1
  39. +++ tests/deleteDefaultPref/database-error-pear.phpt    6 Nov 2008 11:23:30 -0000
  40.  -1,9 +1,11 @@
  41.  --TEST--
  42.  Auth_PrefManager::deleteDefaultPref(): Database Error. PEAR Error Reporting.
  43. +--SKIPIF--
  44. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  45.  --FILE--
  46.  <?php
  47.  
  48. -require 'setup.php';
  49. +require dirname(dirname(__FILE__)) . '/setup.php';
  50.  
  51.  createDatabase(
  52.      array(
  53. Index: tests/deleteDefaultPref/database-error.phpt
  54. ===================================================================
  55. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/database-error.phpt,v
  56. retrieving revision 1.1
  57. diff -u -r1.1 database-error.phpt
  58. --- tests/deleteDefaultPref/database-error.phpt 18 Jun 2007 02:38:19 -0000      1.1
  59. +++ tests/deleteDefaultPref/database-error.phpt 6 Nov 2008 11:23:30 -0000
  60.  -1,9 +1,11 @@
  61.  --TEST--
  62.  Auth_PrefManager::deleteDefaultPref(): Database Error. Classic Error Reporting.
  63. +--SKIPIF--
  64. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  65.  --FILE--
  66.  <?php
  67.  
  68. -require 'setup.php';
  69. +require dirname(dirname(__FILE__)) . '/setup.php';
  70.  
  71.  createDatabase(
  72.      array(
  73. Index: tests/deleteDefaultPref/pref-exists-default-exists.phpt
  74. ===================================================================
  75. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/pref-exists-default-exists.phpt,v
  76. retrieving revision 1.1
  77. diff -u -r1.1 pref-exists-default-exists.phpt
  78. --- tests/deleteDefaultPref/pref-exists-default-exists.phpt     18 Jun 2007 02:38:19 -0000      1.1
  79. +++ tests/deleteDefaultPref/pref-exists-default-exists.phpt     6 Nov 2008 11:23:30 -0000
  80.  -1,9 +1,11 @@
  81.  --TEST--
  82.  Auth_PrefManager::deleteDefaultPref(): Preference exists. Default exists.
  83. +--SKIPIF--
  84. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  85.  --FILE--
  86.  <?php
  87.  
  88. -require 'setup.php';
  89. +require dirname(dirname(__FILE__)) . '/setup.php';
  90.  
  91.  createDatabase(
  92.      array(
  93. Index: tests/deleteDefaultPref/pref-exists-default-notexist.phpt
  94. ===================================================================
  95. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/pref-exists-default-notexist.phpt,v
  96. retrieving revision 1.1
  97. diff -u -r1.1 pref-exists-default-notexist.phpt
  98. --- tests/deleteDefaultPref/pref-exists-default-notexist.phpt   18 Jun 2007 02:38:19 -0000      1.1
  99. +++ tests/deleteDefaultPref/pref-exists-default-notexist.phpt   6 Nov 2008 11:23:30 -0000
  100.  -1,9 +1,11 @@
  101.  --TEST--
  102.  Auth_PrefManager::deleteDefaultPref(): Preference exists. Default does not exist.
  103. +--SKIPIF--
  104. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  105.  --FILE--
  106.  <?php
  107.  
  108. -require 'setup.php';
  109. +require dirname(dirname(__FILE__)) . '/setup.php';
  110.  
  111.  createDatabase(
  112.      array(
  113. Index: tests/deleteDefaultPref/pref-notexist-default-exist.phpt
  114. ===================================================================
  115. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/pref-notexist-default-exist.phpt,v
  116. retrieving revision 1.1
  117. diff -u -r1.1 pref-notexist-default-exist.phpt
  118. --- tests/deleteDefaultPref/pref-notexist-default-exist.phpt    18 Jun 2007 02:38:19 -0000      1.1
  119. +++ tests/deleteDefaultPref/pref-notexist-default-exist.phpt    6 Nov 2008 11:23:30 -0000
  120.  -1,9 +1,11 @@
  121.  --TEST--
  122.  Auth_PrefManager::deleteDefaultPref(): Preference does not exist. Default does.
  123. +--SKIPIF--
  124. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  125.  --FILE--
  126.  <?php
  127.  
  128. -require 'setup.php';
  129. +require dirname(dirname(__FILE__)) . '/setup.php';
  130.  
  131.  createDatabase(
  132.      array(
  133. Index: tests/deleteDefaultPref/pref-notexist-default-notexist.phpt
  134. ===================================================================
  135. RCS file: /repository/pear/Auth_PrefManager/tests/deleteDefaultPref/pref-notexist-default-notexist.phpt,v
  136. retrieving revision 1.1
  137. diff -u -r1.1 pref-notexist-default-notexist.phpt
  138. --- tests/deleteDefaultPref/pref-notexist-default-notexist.phpt 18 Jun 2007 02:38:19 -0000      1.1
  139. +++ tests/deleteDefaultPref/pref-notexist-default-notexist.phpt 6 Nov 2008 11:23:30 -0000
  140.  -1,9 +1,11 @@
  141.  --TEST--
  142.  Auth_PrefManager::getPref(): Preference does not exist. Default does not exist.
  143. +--SKIPIF--
  144. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  145.  --FILE--
  146.  <?php
  147.  
  148. -require 'setup.php';
  149. +require dirname(dirname(__FILE__)) . '/setup.php';
  150.  
  151.  createDatabase();
  152.  
  153. Index: tests/deletePref/database-error-pear.phpt
  154. ===================================================================
  155. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/database-error-pear.phpt,v
  156. retrieving revision 1.1
  157. diff -u -r1.1 database-error-pear.phpt
  158. --- tests/deletePref/database-error-pear.phpt   18 Jun 2007 02:38:19 -0000      1.1
  159. +++ tests/deletePref/database-error-pear.phpt   6 Nov 2008 11:23:30 -0000
  160.  -1,9 +1,11 @@
  161.  --TEST--
  162.  Auth_PrefManager::deletePref(): Database Error. PEAR Error Reporting.
  163. +--SKIPIF--
  164. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  165.  --FILE--
  166.  <?php
  167.  
  168. -require 'setup.php';
  169. +require dirname(dirname(__FILE__)) . '/setup.php';
  170.  
  171.  createDatabase(
  172.      array(
  173. Index: tests/deletePref/database-error.phpt
  174. ===================================================================
  175. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/database-error.phpt,v
  176. retrieving revision 1.1
  177. diff -u -r1.1 database-error.phpt
  178. --- tests/deletePref/database-error.phpt        18 Jun 2007 02:38:19 -0000      1.1
  179. +++ tests/deletePref/database-error.phpt        6 Nov 2008 11:23:30 -0000
  180.  -1,9 +1,11 @@
  181.  --TEST--
  182.  Auth_PrefManager::deletePref(): Database Error. Classic Error Reporting.
  183. +--SKIPIF--
  184. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  185.  --FILE--
  186.  <?php
  187.  
  188. -require 'setup.php';
  189. +require dirname(dirname(__FILE__)) . '/setup.php';
  190.  
  191.  createDatabase(
  192.      array(
  193. Index: tests/deletePref/pref-exists-default-exists.phpt
  194. ===================================================================
  195. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/pref-exists-default-exists.phpt,v
  196. retrieving revision 1.1
  197. diff -u -r1.1 pref-exists-default-exists.phpt
  198. --- tests/deletePref/pref-exists-default-exists.phpt    18 Jun 2007 02:38:19 -0000      1.1
  199. +++ tests/deletePref/pref-exists-default-exists.phpt    6 Nov 2008 11:23:30 -0000
  200.  -1,9 +1,11 @@
  201.  --TEST--
  202.  Auth_PrefManager::deletePref(): Preference exists. Default exists.
  203. +--SKIPIF--
  204. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  205.  --FILE--
  206.  <?php
  207.  
  208. -require 'setup.php';
  209. +require dirname(dirname(__FILE__)) . '/setup.php';
  210.  
  211.  createDatabase(
  212.      array(
  213. Index: tests/deletePref/pref-exists-default-notexist.phpt
  214. ===================================================================
  215. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/pref-exists-default-notexist.phpt,v
  216. retrieving revision 1.1
  217. diff -u -r1.1 pref-exists-default-notexist.phpt
  218. --- tests/deletePref/pref-exists-default-notexist.phpt  18 Jun 2007 02:38:19 -0000      1.1
  219. +++ tests/deletePref/pref-exists-default-notexist.phpt  6 Nov 2008 11:23:30 -0000
  220.  -1,9 +1,11 @@
  221.  --TEST--
  222.  Auth_PrefManager::deletePref(): Preference exists. Default does not exist.
  223. +--SKIPIF--
  224. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  225.  --FILE--
  226.  <?php
  227.  
  228. -require 'setup.php';
  229. +require dirname(dirname(__FILE__)) . '/setup.php';
  230.  
  231.  createDatabase(
  232.      array(
  233. Index: tests/deletePref/pref-notexist-default-exist.phpt
  234. ===================================================================
  235. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/pref-notexist-default-exist.phpt,v
  236. retrieving revision 1.1
  237. diff -u -r1.1 pref-notexist-default-exist.phpt
  238. --- tests/deletePref/pref-notexist-default-exist.phpt   18 Jun 2007 02:38:19 -0000      1.1
  239. +++ tests/deletePref/pref-notexist-default-exist.phpt   6 Nov 2008 11:23:30 -0000
  240.  -1,9 +1,11 @@
  241.  --TEST--
  242.  Auth_PrefManager::deletePref(): Preference does not exist. Default does.
  243. +--SKIPIF--
  244. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  245.  --FILE--
  246.  <?php
  247.  
  248. -require 'setup.php';
  249. +require dirname(dirname(__FILE__)) . '/setup.php';
  250.  
  251.  createDatabase(
  252.      array(
  253. Index: tests/deletePref/pref-notexist-default-notexist.phpt
  254. ===================================================================
  255. RCS file: /repository/pear/Auth_PrefManager/tests/deletePref/pref-notexist-default-notexist.phpt,v
  256. retrieving revision 1.1
  257. diff -u -r1.1 pref-notexist-default-notexist.phpt
  258. --- tests/deletePref/pref-notexist-default-notexist.phpt        18 Jun 2007 02:38:19 -0000      1.1
  259. +++ tests/deletePref/pref-notexist-default-notexist.phpt        6 Nov 2008 11:23:30 -0000
  260.  -1,9 +1,11 @@
  261.  --TEST--
  262.  Auth_PrefManager::getPref(): Preference does not exist. Default does not exist.
  263. +--SKIPIF--
  264. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  265.  --FILE--
  266.  <?php
  267.  
  268. -require 'setup.php';
  269. +require dirname(dirname(__FILE__)) . '/setup.php';
  270.  
  271.  createDatabase();
  272.  
  273. Index: tests/getDefaultPref/database-error-pear.phpt
  274. ===================================================================
  275. RCS file: /repository/pear/Auth_PrefManager/tests/getDefaultPref/database-error-pear.phpt,v
  276. retrieving revision 1.2
  277. diff -u -r1.2 database-error-pear.phpt
  278. --- tests/getDefaultPref/database-error-pear.phpt       18 Jun 2007 02:01:48 -0000      1.2
  279. +++ tests/getDefaultPref/database-error-pear.phpt       6 Nov 2008 11:23:30 -0000
  280.  -1,9 +1,11 @@
  281.  --TEST--
  282.  Auth_PrefManager::getDefaultPref(): Database Error. PEAR Error Reporting.
  283. +--SKIPIF--
  284. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  285.  --FILE--
  286.  <?php
  287.  
  288. -require 'setup.php';
  289. +require dirname(dirname(__FILE__)) . '/setup.php';
  290.  
  291.  createDatabase(
  292.      array(
  293. Index: tests/getDefaultPref/database-error.phpt
  294. ===================================================================
  295. RCS file: /repository/pear/Auth_PrefManager/tests/getDefaultPref/database-error.phpt,v
  296. retrieving revision 1.2
  297. diff -u -r1.2 database-error.phpt
  298. --- tests/getDefaultPref/database-error.phpt    18 Jun 2007 02:01:48 -0000      1.2
  299. +++ tests/getDefaultPref/database-error.phpt    6 Nov 2008 11:23:30 -0000
  300.  -1,9 +1,11 @@
  301.  --TEST--
  302.  Auth_PrefManager::getDefaultPref(): Database Error. Classic Error Reporting.
  303. +--SKIPIF--
  304. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  305.  --FILE--
  306.  <?php
  307.  
  308. -require 'setup.php';
  309. +require dirname(dirname(__FILE__)) . '/setup.php';
  310.  
  311.  createDatabase(
  312.      array(
  313. Index: tests/getDefaultPref/default-exists.phpt
  314. ===================================================================
  315. RCS file: /repository/pear/Auth_PrefManager/tests/getDefaultPref/default-exists.phpt,v
  316. retrieving revision 1.2
  317. diff -u -r1.2 default-exists.phpt
  318. --- tests/getDefaultPref/default-exists.phpt    18 Jun 2007 02:01:48 -0000      1.2
  319. +++ tests/getDefaultPref/default-exists.phpt    6 Nov 2008 11:23:30 -0000
  320.  -1,9 +1,11 @@
  321.  --TEST--
  322.  Auth_PrefManager::getDefaultPref(): Preference does exist. Default does.
  323. +--SKIPIF--
  324. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  325.  --FILE--
  326.  <?php
  327.  
  328. -require 'setup.php';
  329. +require dirname(dirname(__FILE__)) . '/setup.php';
  330.  
  331.  createDatabase(
  332.      array(
  333. Index: tests/getDefaultPref/default-notexist.phpt
  334. ===================================================================
  335. RCS file: /repository/pear/Auth_PrefManager/tests/getDefaultPref/default-notexist.phpt,v
  336. retrieving revision 1.3
  337. diff -u -r1.3 default-notexist.phpt
  338. --- tests/getDefaultPref/default-notexist.phpt  18 Jun 2007 02:38:19 -0000      1.3
  339. +++ tests/getDefaultPref/default-notexist.phpt  6 Nov 2008 11:23:30 -0000
  340.  -1,9 +1,11 @@
  341.  --TEST--
  342.  Auth_PrefManager::getDefaultPref(): Preference does exist. Default does not exist.
  343. +--SKIPIF--
  344. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  345.  --FILE--
  346.  <?php
  347.  
  348. -require 'setup.php';
  349. +require dirname(dirname(__FILE__)) . '/setup.php';
  350.  
  351.  createDatabase(
  352.      array(
  353. Index: tests/getPref/database-error-pear.phpt
  354. ===================================================================
  355. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/database-error-pear.phpt,v
  356. retrieving revision 1.3
  357. diff -u -r1.3 database-error-pear.phpt
  358. --- tests/getPref/database-error-pear.phpt      18 Jun 2007 02:01:48 -0000      1.3
  359. +++ tests/getPref/database-error-pear.phpt      6 Nov 2008 11:23:30 -0000
  360.  -1,9 +1,11 @@
  361.  --TEST--
  362.  Auth_PrefManager::getPref(): Database Error. PEAR Error Reporting.
  363. +--SKIPIF--
  364. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  365.  --FILE--
  366.  <?php
  367.  
  368. -require 'setup.php';
  369. +require dirname(dirname(__FILE__)) . '/setup.php';
  370.  
  371.  createDatabase(
  372.      array(
  373. Index: tests/getPref/database-error.phpt
  374. ===================================================================
  375. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/database-error.phpt,v
  376. retrieving revision 1.2
  377. diff -u -r1.2 database-error.phpt
  378. --- tests/getPref/database-error.phpt   18 Jun 2007 02:01:48 -0000      1.2
  379. +++ tests/getPref/database-error.phpt   6 Nov 2008 11:23:30 -0000
  380.  -1,9 +1,11 @@
  381.  --TEST--
  382.  Auth_PrefManager::getPref(): Database Error. Classic Error Reporting.
  383. +--SKIPIF--
  384. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  385.  --FILE--
  386.  <?php
  387.  
  388. -require 'setup.php';
  389. +require dirname(dirname(__FILE__)) . '/setup.php';
  390.  
  391.  createDatabase(
  392.      array(
  393. Index: tests/getPref/pref-exists-default-exists.phpt
  394. ===================================================================
  395. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/pref-exists-default-exists.phpt,v
  396. retrieving revision 1.4
  397. diff -u -r1.4 pref-exists-default-exists.phpt
  398. --- tests/getPref/pref-exists-default-exists.phpt       18 Jun 2007 02:38:19 -0000      1.4
  399. +++ tests/getPref/pref-exists-default-exists.phpt       6 Nov 2008 11:23:30 -0000
  400.  -1,9 +1,11 @@
  401.  --TEST--
  402.  Auth_PrefManager::getPref(): Preference exists. Default exists.
  403. +--SKIPIF--
  404. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  405.  --FILE--
  406.  <?php
  407.  
  408. -require 'setup.php';
  409. +require dirname(dirname(__FILE__)) . '/setup.php';
  410.  
  411.  createDatabase(
  412.      array(
  413. Index: tests/getPref/pref-exists-default-notexist.phpt
  414. ===================================================================
  415. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/pref-exists-default-notexist.phpt,v
  416. retrieving revision 1.2
  417. diff -u -r1.2 pref-exists-default-notexist.phpt
  418. --- tests/getPref/pref-exists-default-notexist.phpt     18 Jun 2007 02:01:49 -0000      1.2
  419. +++ tests/getPref/pref-exists-default-notexist.phpt     6 Nov 2008 11:23:30 -0000
  420.  -1,9 +1,11 @@
  421.  --TEST--
  422.  Auth_PrefManager::getPref(): Preference exists. Default does not exist.
  423. +--SKIPIF--
  424. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  425.  --FILE--
  426.  <?php
  427.  
  428. -require 'setup.php';
  429. +require dirname(dirname(__FILE__)) . '/setup.php';
  430.  
  431.  createDatabase(
  432.      array(
  433. Index: tests/getPref/pref-notexist-default-exist.phpt
  434. ===================================================================
  435. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/pref-notexist-default-exist.phpt,v
  436. retrieving revision 1.3
  437. diff -u -r1.3 pref-notexist-default-exist.phpt
  438. --- tests/getPref/pref-notexist-default-exist.phpt      18 Jun 2007 02:01:49 -0000      1.3
  439. +++ tests/getPref/pref-notexist-default-exist.phpt      6 Nov 2008 11:23:30 -0000
  440.  -1,9 +1,11 @@
  441.  --TEST--
  442.  Auth_PrefManager::getPref(): Preference does not exist. Default does.
  443. +--SKIPIF--
  444. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  445.  --FILE--
  446.  <?php
  447.  
  448. -require 'setup.php';
  449. +require dirname(dirname(__FILE__)) . '/setup.php';
  450.  
  451.  createDatabase(
  452.      array(
  453. Index: tests/getPref/pref-notexist-default-notexist.phpt
  454. ===================================================================
  455. RCS file: /repository/pear/Auth_PrefManager/tests/getPref/pref-notexist-default-notexist.phpt,v
  456. retrieving revision 1.3
  457. diff -u -r1.3 pref-notexist-default-notexist.phpt
  458. --- tests/getPref/pref-notexist-default-notexist.phpt   18 Jun 2007 02:01:49 -0000      1.3
  459. +++ tests/getPref/pref-notexist-default-notexist.phpt   6 Nov 2008 11:23:30 -0000
  460.  -1,9 +1,11 @@
  461.  --TEST--
  462.  Auth_PrefManager::getPref(): Preference does not exist. Default does not exist.
  463. +--SKIPIF--
  464. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  465.  --FILE--
  466.  <?php
  467.  
  468. -require 'setup.php';
  469. +require dirname(dirname(__FILE__)) . '/setup.php';
  470.  
  471.  createDatabase();
  472.  
  473. Index: tests/setDefaultPref/database-error-pear.phpt
  474. ===================================================================
  475. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/database-error-pear.phpt,v
  476. retrieving revision 1.2
  477. diff -u -r1.2 database-error-pear.phpt
  478. --- tests/setDefaultPref/database-error-pear.phpt       18 Jun 2007 02:01:49 -0000      1.2
  479. +++ tests/setDefaultPref/database-error-pear.phpt       6 Nov 2008 11:23:30 -0000
  480.  -1,5 +1,7 @@
  481.  --TEST--
  482.  Auth_PrefManager::setDefaultPref(): Database Error. PEAR Error Reporting.
  483. +--SKIPIF--
  484. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  485.  --FILE--
  486.  <?php
  487.  
  488. Index: tests/setDefaultPref/database-error.phpt
  489. ===================================================================
  490. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/database-error.phpt,v
  491. retrieving revision 1.2
  492. diff -u -r1.2 database-error.phpt
  493. --- tests/setDefaultPref/database-error.phpt    18 Jun 2007 02:01:49 -0000      1.2
  494. +++ tests/setDefaultPref/database-error.phpt    6 Nov 2008 11:23:30 -0000
  495.  -1,5 +1,7 @@
  496.  --TEST--
  497.  Auth_PrefManager::setDefaultPref(): Database Error. Classic Reporting.
  498. +--SKIPIF--
  499. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  500.  --FILE--
  501.  <?php
  502.  
  503. Index: tests/setDefaultPref/pref-exists-default-exists.phpt
  504. ===================================================================
  505. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/pref-exists-default-exists.phpt,v
  506. retrieving revision 1.2
  507. diff -u -r1.2 pref-exists-default-exists.phpt
  508. --- tests/setDefaultPref/pref-exists-default-exists.phpt        18 Jun 2007 02:01:49 -0000      1.2
  509. +++ tests/setDefaultPref/pref-exists-default-exists.phpt        6 Nov 2008 11:23:30 -0000
  510.  -1,5 +1,7 @@
  511.  --TEST--
  512.  Auth_PrefManager::setDefaultPref(): Preference exists. Default exists.
  513. +--SKIPIF--
  514. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  515.  --FILE--
  516.  <?php
  517.  
  518. Index: tests/setDefaultPref/pref-exists-default-notexist.phpt
  519. ===================================================================
  520. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/pref-exists-default-notexist.phpt,v
  521. retrieving revision 1.2
  522. diff -u -r1.2 pref-exists-default-notexist.phpt
  523. --- tests/setDefaultPref/pref-exists-default-notexist.phpt      18 Jun 2007 02:01:49 -0000      1.2
  524. +++ tests/setDefaultPref/pref-exists-default-notexist.phpt      6 Nov 2008 11:23:30 -0000
  525.  -1,5 +1,7 @@
  526.  --TEST--
  527.  Auth_PrefManager::setDefaultPref(): Preference exists. Default does not exist.
  528. +--SKIPIF--
  529. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  530.  --FILE--
  531.  <?php
  532.  
  533. Index: tests/setDefaultPref/pref-notexist-default-exists.phpt
  534. ===================================================================
  535. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/pref-notexist-default-exists.phpt,v
  536. retrieving revision 1.2
  537. diff -u -r1.2 pref-notexist-default-exists.phpt
  538. --- tests/setDefaultPref/pref-notexist-default-exists.phpt      18 Jun 2007 02:01:49 -0000      1.2
  539. +++ tests/setDefaultPref/pref-notexist-default-exists.phpt      6 Nov 2008 11:23:30 -0000
  540.  -1,5 +1,7 @@
  541.  --TEST--
  542.  Auth_PrefManager::setDefaultPref(): Preference not exist. Default exists.
  543. +--SKIPIF--
  544. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  545.  --FILE--
  546.  <?php
  547.  
  548. Index: tests/setDefaultPref/pref-notexist-default-notexist.phpt
  549. ===================================================================
  550. RCS file: /repository/pear/Auth_PrefManager/tests/setDefaultPref/pref-notexist-default-notexist.phpt,v
  551. retrieving revision 1.2
  552. diff -u -r1.2 pref-notexist-default-notexist.phpt
  553. --- tests/setDefaultPref/pref-notexist-default-notexist.phpt    18 Jun 2007 02:01:49 -0000      1.2
  554. +++ tests/setDefaultPref/pref-notexist-default-notexist.phpt    6 Nov 2008 11:23:30 -0000
  555.  -1,5 +1,7 @@
  556.  --TEST--
  557.  Auth_PrefManager::setDefaultPref(): Preference not exist. Default does not exist.
  558. +--SKIPIF--
  559. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  560.  --FILE--
  561.  <?php
  562.  
  563. Index: tests/setPref/database-error-pear.phpt
  564. ===================================================================
  565. RCS file: /repository/pear/Auth_PrefManager/tests/setPref/database-error-pear.phpt,v
  566. retrieving revision 1.2
  567. diff -u -r1.2 database-error-pear.phpt
  568. --- tests/setPref/database-error-pear.phpt      18 Jun 2007 02:01:49 -0000      1.2
  569. +++ tests/setPref/database-error-pear.phpt      6 Nov 2008 11:23:30 -0000
  570.  -1,9 +1,11 @@
  571.  --TEST--
  572.  Auth_PrefManager::setPref(): Database Error. PEAR Error Reporting.
  573. +--SKIPIF--
  574. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  575.  --FILE--
  576.  <?php
  577.  
  578. -require 'setup.php';
  579. +require dirname(dirname(__FILE__)) . '/setup.php';
  580.  
  581.  createDatabase(
  582.      array(
  583. Index: tests/setPref/database-error.phpt
  584. ===================================================================
  585. RCS file: /repository/pear/Auth_PrefManager/tests/setPref/database-error.phpt,v
  586. retrieving revision 1.2
  587. diff -u -r1.2 database-error.phpt
  588. --- tests/setPref/database-error.phpt   18 Jun 2007 02:01:49 -0000      1.2
  589. +++ tests/setPref/database-error.phpt   6 Nov 2008 11:23:30 -0000
  590.  -1,9 +1,11 @@
  591.  --TEST--
  592.  Auth_PrefManager::setPref(): Database Error. Classic Reporting.
  593. +--SKIPIF--
  594. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  595.  --FILE--
  596.  <?php
  597.  
  598. -require 'setup.php';
  599. +require dirname(dirname(__FILE__)) . '/setup.php';
  600.  
  601.  createDatabase(
  602.      array(
  603. Index: tests/setPref/pref-exists-default-exists.phpt
  604. ===================================================================
  605. RCS file: /repository/pear/Auth_PrefManager/tests/setPref/pref-exists-default-exists.phpt,v
  606. retrieving revision 1.3
  607. diff -u -r1.3 pref-exists-default-exists.phpt
  608. --- tests/setPref/pref-exists-default-exists.phpt       18 Jun 2007 02:01:49 -0000      1.3
  609. +++ tests/setPref/pref-exists-default-exists.phpt       6 Nov 2008 11:23:30 -0000
  610.  -1,9 +1,11 @@
  611.  --TEST--
  612.  Auth_PrefManager::setPref(): Preference exists.
  613. +--SKIPIF--
  614. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  615.  --FILE--
  616.  <?php
  617.  
  618. -require 'setup.php';
  619. +require dirname(dirname(__FILE__)) . '/setup.php';
  620.  
  621.  createDatabase(
  622.      array(
  623. Index: tests/setPref/pref-notexist-default-exists.phpt
  624. ===================================================================
  625. RCS file: /repository/pear/Auth_PrefManager/tests/setPref/pref-notexist-default-exists.phpt,v
  626. retrieving revision 1.3
  627. diff -u -r1.3 pref-notexist-default-exists.phpt
  628. --- tests/setPref/pref-notexist-default-exists.phpt     18 Jun 2007 02:01:49 -0000      1.3
  629. +++ tests/setPref/pref-notexist-default-exists.phpt     6 Nov 2008 11:23:30 -0000
  630.  -1,9 +1,10 @@
  631.  --TEST--
  632.  Auth_PrefManager::setPref(): Preference does not exist.
  633. +--SKIPIF--
  634. +<?php require dirname(dirname(__FILE__)) . '/setup.php'; ?>
  635.  --FILE--
  636.  <?php
  637. -
  638. -require 'setup.php';
  639. +require dirname(dirname(__FILE__)) . '/setup.php';
  640.  
  641.  createDatabase(
  642.      array(
clone this paste RAW Paste Data