PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   Injector   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Unit test script
Class: Injector
Inject dependencies defined in annotation comments
Author: By
Last change:
Date: 9 years ago
Size: 234 bytes


Class file image Download
//call composer autoloader
$loader = require __DIR__ . "/../vendor/autoload.php";

//set namespace dir
$loader->add('Injector\\', __DIR__ . '/../src/');

//add test classes namespace
$loader->add('Acme\\', __DIR__ . '/classes');