/** * @param string $text * * @return UnitTestAggregate */ public static function schedule($text) { $id = new Identifier('Unit-Test-ID-X'); $instance = new self(); $instance->trackThat(new UnitTestEvent($id, $text), []); return $instance; }
public static function init($id, $text) { $instance = new self(); $instance->trackThat(new UnitTestEvent(new Identifier($id), $text), []); return $instance; }