/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['ソースを与える'] = array($this, 'setSource'); $this->whenTable['XML生成を実行する'] = array($this, 'createXml'); $this->thenTable['生成されたXMLが正しい'] = array($this, 'validateXml'); $this->thenTable['生成されたXMLが正しい(名前空間付き検証)'] = array($this, 'validateXmlWithNS'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを取得する'] = array($this, 'getInstance'); $this->thenTable['指定したインスタンスが取得できる'] = array($this, 'isInstance'); $this->thenTable['同一性が取れる'] = array($this, 'isEqualInstance'); $this->thenTable['複製することはできない'] = array($this, 'cannotCopy'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを取得する'] = array($this, 'getInstance'); $this->whenTable['XML生成を実行する'] = array($this, 'createXml'); $this->thenTable['指定したインスタンスが取得できる'] = array($this, 'validateInstance'); $this->thenTable['生成されたXMLが正しい'] = array($this, 'validateXml'); $this->thenTable['生成されたXMLが正しい(名前空間付き検証)'] = array($this, 'validateXmlWithNS'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを取得する'] = array($this, 'getInstance'); $this->thenTable['指定したインスタンスが取得できる'] = array($this, 'isInstance'); $this->thenTable['Singletonである'] = array($this, 'isSingleton'); $this->thenTable['setupが呼べる'] = array($this, 'callSetup'); $this->thenTable['phaseが呼べる'] = array($this, 'callPhase'); $this->thenTable['teardownが呼べる'] = array($this, 'callTeardown'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable[''] = array($this, 'noop'); $this->whenTable['環境を設定する'] = array($this, 'setValues'); $this->whenTable['カレントディレクトリ値を改変する'] = array($this, 'setCurrentDirectory'); $this->thenTable['現在のクエリが取得できている'] = array($this, 'validateQuery'); $this->thenTable['現在のHTTPメソッドが取得できている'] = array($this, 'validateMethod'); $this->thenTable['現在のRESTパラメータが取得できている'] = array($this, 'validateRestParams'); $this->thenTable['現在の基底パスが取得できている'] = array($this, 'validateBasePath'); $this->thenTable['カレントディレクトリ値が正しい'] = array($this, 'validateCurrentDirectory'); $this->thenTable['存在しないカレントディレクトリ値は設定できない'] = array($this, 'errorIfSetInvalidDirectory'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['givenを実行する'] = array($this, 'throughGiven'); $this->givenTable['givenを実行する2'] = array($this, 'throughGiven2'); $this->whenTable['whenを実行する'] = array($this, 'throughWhen'); $this->whenTable['whenを実行する2'] = array($this, 'throughWhen2'); $this->thenTable['thenを実行する'] = array($this, 'throughThen'); $this->thenTable['thenを実行する2'] = array($this, 'throughThen2'); $this->thenTable['given,when,thenがすべて実行されている'] = array($this, 'allThru'); $this->thenTable['given,when,thenの2がすべて実行されている'] = array($this, 'allThru2'); $this->thenTable['例外テストができる'] = array($this, 'validateAssertException'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを生成する'] = array($this, 'createInstance'); $this->givenTable['メッセージを指定してインスタンスを生成する'] = array($this, 'createInstanceWithMessage'); $this->givenTable['ソースを設定する'] = array($this, 'setSource'); $this->whenTable['メッセージを追記する'] = array($this, 'addMessage'); $this->whenTable['メッセージを強制フラグを指定して追記する'] = array($this, 'forceAddMessage'); $this->whenTable['指定文字数に短縮する'] = array($this, 'omit'); $this->whenTable['制限文字数が短縮記号より短い場合、例外を起こす'] = array($this, 'omitTooShort'); $this->thenTable['現在のメッセージが正しい'] = array($this, 'validateMessage'); $this->thenTable['結果が正しい'] = array($this, 'validateResult'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを取得する'] = array($this, 'getInstance'); $this->givenTable['初期状態としてインスタンスを食わせたコンテキストを取得する'] = array($this, 'createContextWithState'); $this->whenTable['コンテキストを生成する'] = array($this, 'createContext'); $this->whenTable['コンテキストを実行する'] = array($this, 'runPhase'); $this->whenTable['teardown を実行する'] = array($this, 'callTeardown'); $this->whenTable['REST情報を設定する'] = array($this, 'emulateHTTPRequest'); $this->whenTable['次の状態を指定する'] = array($this, 'setNextState'); $this->whenTable['カレントディレクトリ値を改変する'] = array($this, 'setCurrentDirectory'); $this->thenTable['指定したインスタンスが取得できる'] = array($this, 'validateInstance'); $this->thenTable['ワークが書き換わらない'] = array($this, 'validateWorkIsEmpty'); $this->thenTable['前回の状態が正しい'] = array($this, 'validatePreviousState'); $this->thenTable['現在の状態が正しい'] = array($this, 'validateCurrentState'); $this->thenTable['次回の状態が正しい'] = array($this, 'validateNextState'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを取得する'] = array($this, 'getInstance'); $this->givenTable['初期状態としてインスタンスを食わせたコンテキストを取得する'] = array($this, 'getInstanceWithContext'); $this->whenTable['REST情報を設定する'] = array($this, 'setRestParams'); $this->whenTable['コンテキストを生成する'] = array($this, 'createContext'); $this->whenTable['コンテキストを実行する'] = array($this, 'phase'); $this->whenTable['teardown を実行する'] = array($this, 'callTeardown'); $this->whenTable['環境設定をリセットする'] = array($this, 'resetParams'); $this->whenTable['コンテキストに情報を設定する'] = array($this, 'setStorage'); $this->thenTable['指定したインスタンスが取得できる'] = array($this, 'validateInstanceType'); $this->thenTable['ワークのエラー種別が正しい'] = array($this, 'validateMessageType'); $this->thenTable['ワークのエラーコードが正しい'] = array($this, 'validateMessageId'); $this->thenTable['ワークのメッセージが正しい'] = array($this, 'validateMessage'); $this->thenTable['ワークは変化しない'] = array($this, 'validateNoChangeStorage'); $this->thenTable['前回の状態が正しい'] = array($this, 'validatePreviousState'); $this->thenTable['現在の状態が正しい'] = array($this, 'validateCurrentState'); $this->thenTable['次回の状態が正しい'] = array($this, 'validateNextState'); }
/** Constructor. */ public function __construct() { parent::__construct(); $this->givenTable['インスタンスを生成する'] = array($this, 'createInstance'); $this->givenTable['指定の引数でインスタンスを生成する'] = array($this, 'createInstanceWithFirstState'); $this->whenTable['ストレージの特定のキーに値を設定する'] = array($this, 'setStorage'); $this->whenTable['次回の状態を指定する'] = array($this, 'setNextPhase'); $this->whenTable['フェーズを実行する'] = array($this, 'runPhase'); $this->whenTable['現在の状態を次回の状態で確定する'] = array($this, 'commitState'); $this->whenTable['コンテキストをリセットする'] = array($this, 'terminate'); $this->whenTable['状態の実行履歴を初期化する'] = array($this, 'resetTestState'); $this->whenTable['反復実行する'] = array($this, 'loop'); $this->thenTable['特定のインターフェイスを実装している'] = array($this, 'validatehasInterface'); $this->thenTable['前回の状態は指定した通りである'] = array($this, 'validatePreviousState'); $this->thenTable['現在の状態は指定した通りである'] = array($this, 'validateCurrentState'); $this->thenTable['次回の状態は指定した通りである'] = array($this, 'validateNextState'); $this->thenTable['ストレージの内容は指定した通りである'] = array($this, 'validateStorage'); $this->thenTable['状態確定の結果は引数の通りである'] = array($this, 'validateCommitStateResult'); $this->thenTable['アイドル状態である'] = array($this, 'validateIsTerminate'); $this->thenTable['指定の状態の setup が呼び出されたかどうか'] = array($this, 'validateThroughSetup'); $this->thenTable['指定の状態の phase が呼び出されたかどうか'] = array($this, 'validateThroughPhase'); $this->thenTable['指定の状態の teardown が呼び出されたかどうか'] = array($this, 'validateThroughTeardown'); $this->thenTable['指定数の実行回数が呼び出された'] = array($this, 'validateLoopedCount'); }
/** Constructor. */ public function __construct() { parent::__construct(); }