<?php /** * This file is part of Drimple * * (c) Korstiaan de Ridder <*****@*****.**> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Drunit\Drunit; require __DIR__ . '/../vendor/autoload.php'; if (!class_exists('Drunit\\Drunit')) { throw new \RuntimeException('Drunit not found, make sure you have installed all dependencies (--dev)'); } Drunit::bootstrap(); Drunit::enableModule(__DIR__ . '/modules/nsautoload_us'); Drunit::enableModule(__DIR__ . '/modules/nsautoload_us_two'); Drunit::enableModule(__DIR__ . '/modules/nsautoloadtest');
public function testProvideHook() { Drunit::enableModule(__DIR__ . '/../../drimple_test', array('drimple_test')); $drimple = drimple(); $this->assertSame('bar', $drimple->get('foo')); }
/** * @expectedException InvalidArgumentException */ public function testInvalidLocationException() { Drunit::enableModule(__DIR__ . '/../../modules/foobar'); }
public function setUp() { Drunit::enableModule(__DIR__ . '/../../../module', array('nsautoload')); Drunit::enableModule(__DIR__ . '/../../modules/nsautoload_drupal'); }