Example #1
0
 public function testLifecycle()
 {
     $key = static::class;
     $this->assertNull(Container::get($key));
     Container::set($key, $this);
     $this->assertEquals($this, Container::get($key));
 }
Example #2
0
<?php

use Fractile\Config;
use Fractile\Container;
require_once __DIR__ . '/../vendor/autoload.php';
// setup testing environment
Container::set('Config', new Config(__DIR__ . '/fixtures/config.php'));