class IoCTest extends PHPUnit_Framework_TestCase
{
    /**
     * Set up the application and a mock class
     */
    protected function setUp()
    {
        $app['class'] = new class extends \stdClass
        {
            public function get(string $text) : string
            {
                return $text;
            }
        };
        $this->application = Application::setApplication($app);
    }
    public function testContainer()
    {
        $this->assertTrue(Container::get('class') instanceof \stdClass);
    }
    public function testFacade()
    {
        $facade = new class extends Facade
        {
            protected static function getFacadeAccessor() : string
            {
                return 'class';
            }
        };
        $this->assertTrue($facade::make() instanceof \stdClass);
        $this->assertTrue($facade::make()->get('test') === 'test');
    }
}