Browse files

1. Added the Symfony2 class loader to implement PSR-0 autoloading.

Configured PHPUnit config file.
Added an empty test.
  • Loading branch information...
1 parent a8547f0 commit a3a15f399fdc132e182c4662d8a27e6574b1ec51 @odino committed Nov 15, 2011
Showing with 70 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +13 −0 autoload.php
  3. +27 −0 phpunit.xml.dist
  4. +1 −0 src/Symfony/Component/ClassLoader
  5. +26 −0 tests/DijkstraTest.php
View
3 .gitmodules
@@ -0,0 +1,3 @@
+[submodule "src/Symfony/Component/ClassLoader"]
+ path = src/Symfony/Component/ClassLoader
+ url = git://github.com/symfony/ClassLoader.git
View
13 autoload.php
@@ -0,0 +1,13 @@
+<?php
+
+require_once __DIR__.'/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
+
+use Symfony\Component\ClassLoader\UniversalClassLoader;
+
+$loader = new UniversalClassLoader();
+$loader->registerNamespaces(array(
+ 'Symfony' => array(__DIR__.'/src', __DIR__.'/symfony/src'),
+ 'Osidays' => __DIR__.'/src/',
+));
+
+$loader->register();
View
27 phpunit.xml.dist
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="true"
+ bootstrap="autoload.php"
+ backupStaticAttributes="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ forceCoversAnnotation="false"
+ mapTestClassNameToCoveredClassName="false"
+ processIsolation="false"
+ stopOnError="false"
+ stopOnFailure="false"
+ stopOnIncomplete="false"
+ stopOnSkipped="false"
+ syntaxCheck="false"
+ testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
+ strict="false"
+ verbose="false">
+
+ <testsuites>
+ <testsuite>
+ <directory >tests</directory>
+ </testsuite>
+ </testsuites>
+</phpunit>
1 src/Symfony/Component/ClassLoader
@@ -0,0 +1 @@
+Subproject commit 5cd07e40f6894c084cfc1eb02fd25d6005e6646c
View
26 tests/DijkstraTest.php
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of the Orient package.
+ *
+ * (c) Alessandro Nadalin <alessandro.nadalin@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * Class DijkstraTest
+ *
+ * @package Osidays
+ * @subpackage Tests
+ * @author Alessandro Nadalin <alessandro.nadalin@gmail.com>
+ */
+
+use Osidays\Algorithm\ShortestPath\Dijkstra;
+
+class DijkstraTest extends PHPUnit_Framework_TestCase
+{
+
+}
+

0 comments on commit a3a15f3

Please sign in to comment.