Skip to content

Commit

Permalink
完善单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
yeaha committed Dec 1, 2016
1 parent ffc16a5 commit 44bb5e9
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 112 deletions.
12 changes: 9 additions & 3 deletions tests/BootStrap.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?php

if (!file_exists(__DIR__.'/../vendor')) {
die('run "composer install" first'.PHP_EOL);
if (!file_exists(__DIR__ . '/../vendor')) {
die('run "composer install" first' . PHP_EOL);
}

defined('TEST') or define('TEST', true);
define('TEST_DIR', __DIR__);

require __DIR__.'/../vendor/autoload.php';
require __DIR__ . '/../vendor/autoload.php';

\Owl\Service\Container::getInstance()->setServices([
'mock.storage' => [
'class' => '\Tests\Mock\DataMapper\Service',
],
]);
Loading

0 comments on commit 44bb5e9

Please sign in to comment.