Add autoloader.
authorJan Schneider <jan@horde.org>
Thu, 6 Jan 2011 15:10:52 +0000 (16:10 +0100)
committerJan Schneider <jan@horde.org>
Thu, 6 Jan 2011 15:35:58 +0000 (16:35 +0100)
framework/Mime/test/Horde/Mime/AddressTest.php
framework/Mime/test/Horde/Mime/Autoload.php [new file with mode: 0644]
framework/Mime/test/Horde/Mime/HeadersTest.php
framework/Mime/test/Horde/Mime/MagicTest.php
framework/Mime/test/Horde/Mime/MailTest.php
framework/Mime/test/Horde/Mime/MimeTest.php
framework/Mime/test/Horde/Mime/PartTest.php

index 92ea828..52f1758 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
diff --git a/framework/Mime/test/Horde/Mime/Autoload.php b/framework/Mime/test/Horde/Mime/Autoload.php
new file mode 100644 (file)
index 0000000..6de719a
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Setup autoloading for the tests.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category   Horde
+ * @package    Mime
+ * @subpackage UnitTests
+ * @author     Jan Schneider <jan@horde.org>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ */
+
+require_once 'Horde/Test/Autoload.php';
+
+/* Catch strict standards */
+error_reporting(E_ALL | E_STRICT);
index d438a52..74e5b6b 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
index 3b49f56..cc32a67 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
index fcf6ba2..651c352 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
index a502a4f..00442d5 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
index 2855a1d..5fe1e37 100644 (file)
  */
 
 /**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
  * @author     Michael Slusarz <slusarz@curecanti.org>
  * @category   Horde
  * @license    http://www.fsf.org/copyleft/lgpl.html LGPL