aboutsummaryrefslogtreecommitdiff
path: root/models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php
diff options
context:
space:
mode:
Diffstat (limited to 'models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php')
-rw-r--r--models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php b/models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php
deleted file mode 100644
index 6c2581251..000000000
--- a/models/openid-php-openid-782224d/Tests/Auth/Yadis/TestUtil.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * Utilites for test functions
- */
-
-function Tests_Auth_Yadis_datafile($name, $reader)
-{
- $path = dirname(realpath(__FILE__));
- $sep = DIRECTORY_SEPARATOR;
- $filename = $path . $sep . 'data' . $sep . $name;
- $data = $reader($filename);
- if ($data === false) {
- $msg = "Failed to open data file: $name";
- trigger_error($msg, E_USER_ERROR);
- }
- return $data;
-}
-
-function Tests_Auth_Yadis_readdata($name)
-{
- return Tests_Auth_Yadis_datafile($name, 'file_get_contents');
-}
-
-function Tests_Auth_Yadis_readlines($name)
-{
- return Tests_Auth_Yadis_datafile($name, 'file');
-}
-
-