-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtest.php
More file actions
executable file
·19 lines (15 loc) · 1.02 KB
/
Copy pathtest.php
File metadata and controls
executable file
·19 lines (15 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env php
<?php
require_once __DIR__ . '/vendor/autoload.php';
// TestFrameworkInATweet https://gist.github.com/mathiasverraes/9046427
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);}
function throws($exp,Closure $cb){try{$cb();}catch(Exception $e){return $e instanceof $exp;}return false;}
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/01-IdentifiesAggregate.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/02-DomainEvent.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/03-RecordsEvents.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/04-ProtectsInvariants.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/05-ProtectsMoreInvariants.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/06-IsEventSourced.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/07-EventStore.php';
require_once __DIR__ . '/tests/Buttercup/Protects/Tests/08-AggregateRepository.php';
done();