Skip to content

Commit

Permalink
use autoloader for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hinse committed Feb 1, 2016
1 parent 9d1bf1e commit 8d903ed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php # -*- coding: utf-8 -*-
namespace Inpsyde\SearchReplace;

$base_dir = dirname( __DIR__ );

Expand All @@ -7,10 +8,10 @@
if ( file_exists( $composer_file ) )
require_once $composer_file;

//set up autoloader

require_once $base_dir . './src/inc/Autoloader.php';
require_once $base_dir . './src/inc/Replace.php';
require_once $base_dir . './src/inc/DatabaseExporter.php';
require_once $base_dir. './src/inc/DatabaseManager.php';
require_once $base_dir. './src/inc/Admin.php';
require_once $base_dir . './src/inc/DatabaseImporter.php';
$autoloader = new inc\Autoloader( __NAMESPACE__, $base_dir.'./src/' );
$autoloader->register();


0 comments on commit 8d903ed

Please sign in to comment.