Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added the Symfony2 class loader to implement PSR-0 autoloading.
Configured PHPUnit config file. Added an empty test.
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "src/Symfony/Component/ClassLoader"] | ||
path = src/Symfony/Component/ClassLoader | ||
url = git://github.com/symfony/ClassLoader.git |
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,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(); |
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,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> |
Submodule ClassLoader
added at
5cd07e
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,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 | ||
{ | ||
|
||
} | ||
|