Skip to content

Commit

Permalink
Updated INSTALL.md with the proper url.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Spraggs committed Nov 4, 2011
1 parent d1fb130 commit cdc8395
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The simplest way to install is to clone the repository into your /modules direct
SpiffyDoctrine key to your modules array before your Application module key.

1. cd my/project/folder
2. git clone https://SpiffyJr@github.com/SpiffyJr/SpiffyDoctrine.git modules/SpiffyDoctrine --recursive
2. git clone git://github.com/SpiffyJr/SpiffyDoctrine.git modules/SpiffyDoctrine --recursive
3. open my/project/folder/configs/application.config.php and add 'SpiffyDoctrine' to your 'modules' parameter.
4. Alter the configuration (most likely your connection and entities path(s)) by adding the required changes to
my/project/folder/modules/Application/module.config.php.
Expand Down Expand Up @@ -98,4 +98,4 @@ key to the 'conn' array.
),
),
)
)
)
10 changes: 10 additions & 0 deletions tests/SpiffyDoctrine/Test/Doctrine/Cli.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
namespace SpiffyDoctrine\Test\Authentication\Adapter;

class DoctrineEntityTest extends \PHPUnit_Framework_TestCase
{
public function testDoIWork()
{

}
}
39 changes: 39 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
<?php
use Zend\Loader\AutoloaderFactory,
Zend\Config\Config,
Zend\Loader\ModuleAutoloader,
Zend\Module\Manager as ModuleManager,
Zend\Module\ManagerOptions,
Zend\Mvc\Bootstrap,
Zend\Mvc\Application;

ini_set('display_errors', true);
error_reporting(-1);

// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(__DIR__ . '/../../../library'), // just for git submodule
realpath(__DIR__ . '/../../../library/ZendFramework/library'), // just for git submodule
get_include_path(),
)));

require_once 'Zend/Loader/AutoloaderFactory.php';
AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' => array()));

$appConfig = new Config(include __DIR__ . '/../../../configs/application.config.php');

$moduleLoader = new ModuleAutoloader($appConfig['module_paths']);
$moduleLoader->register();

$moduleManager = new ModuleManager(
$appConfig['modules'],
new ManagerOptions($appConfig['module_manager_options'])
);

$bootstrap = new Bootstrap($moduleManager);
$application = new Application();
$bootstrap->bootstrap($application);
$locator = $application->getLocator();

0 comments on commit cdc8395

Please sign in to comment.