forked from dimikot/db_type
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test settings xml and bootstrap.php (with __autoload)
- Loading branch information
Maxim Turchin
committed
Sep 8, 2011
1 parent
36a2489
commit 76110fa
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: nehxby | ||
* Date: 2 жовт 2010 | ||
* Time: 0:17:57 | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
|
||
function __autoload($classname) { | ||
if (class_exists($classname, false) || interface_exists($classname, false)) { | ||
return; | ||
} | ||
$path = dirname(__DIR__). DIRECTORY_SEPARATOR. 'lib'. DIRECTORY_SEPARATOR | ||
. str_replace('_', DIRECTORY_SEPARATOR, $classname). '.php'; | ||
require $path; | ||
} | ||
spl_autoload_register('__autoload'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<phpunit | ||
bootstrap="bootstrap.php" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
stopOnFailure="true"> | ||
<!-- | ||
--> | ||
</phpunit> |