From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Thu, 8 Jan 2015 06:54:11 -0400
Subject: Use homemade static autoload in examples and tests

---
 examples/cli.php           | 2 +-
 examples/examples.php      | 2 +-
 tests/SqlFormatterTest.php | 2 +-
 tests/performance.php      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/cli.php b/examples/cli.php
index 17ee0e1..bfbae21 100644
--- a/examples/cli.php
+++ b/examples/cli.php
@@ -12,6 +12,6 @@ else {
 	$sql = stream_get_contents(fopen("php://stdin", "r"));
 }
 
-require_once(__DIR__.'/../lib/SqlFormatter.php');
+require_once('SqlFormatter/autoload.php');
 
 echo SqlFormatter::format($sql);
diff --git a/examples/examples.php b/examples/examples.php
index f54cfb0..22b0344 100644
--- a/examples/examples.php
+++ b/examples/examples.php
@@ -31,7 +31,7 @@
 <body>
 <?php
 
-require_once(__DIR__.'/../lib/SqlFormatter.php');
+require_once('SqlFormatter/autoload.php');
 
 // Example statements for formatting and highlighting
 $statements = array(
diff --git a/tests/SqlFormatterTest.php b/tests/SqlFormatterTest.php
index ca535cf..ac3a232 100644
--- a/tests/SqlFormatterTest.php
+++ b/tests/SqlFormatterTest.php
@@ -1,5 +1,5 @@
 <?php
-require __DIR__.'/../lib/SqlFormatter.php';
+require 'SqlFormatter/autoload.php';
 
 // Force SqlFormatter to run in non-CLI mode for tests
 SqlFormatter::$cli = false;
diff --git a/tests/performance.php b/tests/performance.php
index 6c9eb97..8e1e3d3 100644
--- a/tests/performance.php
+++ b/tests/performance.php
@@ -1,5 +1,5 @@
 <?php
-require '../lib/SqlFormatter.php';
+require 'SqlFormatter/autoload.php';
 
 //this is the default value
 //set to '0' to disable caching
