Ejemplo n.º 1
0
<?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');
Ejemplo n.º 2
0
 public function testProvideHook()
 {
     Drunit::enableModule(__DIR__ . '/../../drimple_test', array('drimple_test'));
     $drimple = drimple();
     $this->assertSame('bar', $drimple->get('foo'));
 }
Ejemplo n.º 3
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testInvalidLocationException()
 {
     Drunit::enableModule(__DIR__ . '/../../modules/foobar');
 }
Ejemplo n.º 4
0
 public function setUp()
 {
     Drunit::enableModule(__DIR__ . '/../../../module', array('nsautoload'));
     Drunit::enableModule(__DIR__ . '/../../modules/nsautoload_drupal');
 }