| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 | 
							- <?php
 
- class OrderCest
 
- {
 
-     public function checkOneFile(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order LoadingOrderCept.php');
 
-         $I->expect('global bootstrap, initialization, beforeSuite, before, bootstrap(B), test(T), after, afterSuite');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeFileContentsEqual("BIB([ST])");
 
-     }
 
-     public function checkForFails(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order FailedCept.php --no-exit');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->expect('global bootstrap, initialization, beforeSuite, before, bootstrap, test, fail, after, afterSuite');
 
-         $I->seeFileContentsEqual("BIB([STF])");
 
-     }
 
-     public function checkForCanCantFails(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order CanCantFailCept.php --no-exit');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->expect(
 
-             'global bootstrap, initialization, beforeSuite, before, bootstrap, test,'
 
-             . ' fail, fail, test, after, afterSuite'
 
-         );
 
-         $I->seeFileContentsEqual("BIB([STFFT])");
 
-     }
 
-     public function checkForCanCantFailsInCest(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order CanCantFailCest.php --no-exit');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->expect(
 
-             'global bootstrap, initialization, beforeSuite, before, bootstrap, test,'
 
-             . ' fail, fail, test, test, fail, fail, test, after, afterSuite'
 
-         );
 
-         $I->seeFileContentsEqual("BIB([TFT][TFT])");
 
-     }
 
-     public function checkSimpleFiles(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order --no-exit --group simple');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeFileContentsEqual("BIBP({{{{[ST][STFFT][STF][ST]}}}})");
 
-     }
 
-     public function checkCestOrder(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run tests/order/ReorderCest.php --no-exit');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeFileContentsEqual("BIB([0123456])");
 
-     }
 
-     public function checkFailingCestOrder(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run tests/order/FailedCest.php --no-exit -vvv');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeFileContentsEqual("BIB([a%F])");
 
-     }
 
-     public function checkCodeceptionTest(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order CodeTest.php --no-exit');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->expect('
 
-             global bootstrap,
 
-             initialization,
 
-             beforeSuite,
 
-             beforeClass,
 
-             @beforeClass,
 
-             bootstrap,
 
-             before,
 
-             @before
 
-             test,
 
-             after,
 
-             @after,
 
-             afterSuite,
 
-             afterClass,
 
-             @afterClass');
 
-         $I->seeFileContentsEqual("BIB({{[<C>]}})");
 
-     }
 
-     public function checkAfterBeforeClassInTests(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order BeforeAfterClassTest.php');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeInThisFile('BIB({[1][2]})');
 
-     }
 
-     public function checkAfterBeforeClassInTestWithDataProvider(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order BeforeAfterClassWithDataProviderTest.php');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeInThisFile('BIB({[A][B][C]})');
 
-     }
 
-     public function checkBootstrapIsLoadedBeforeTests(CliGuy $I)
 
-     {
 
-         $I->amInPath('tests/data/sandbox');
 
-         $I->executeCommand('run order ParsedLoadedTest.php');
 
-         $I->seeFileFound('order.txt', 'tests/_output');
 
-         $I->seeInThisFile('BIBP(T)');
 
-     }
 
- }
 
 
  |