Created
June 29, 2016 07:41
-
-
Save achepukov/c25630573eb8adb7ca22915c73787ab4 to your computer and use it in GitHub Desktop.
Test generator - creates test when app failed with exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'application.php'; | |
require_once 'generator.php'; | |
$app = new Application($_GET, $_POST); | |
$testGenerator = Generator::factory(); | |
try { | |
$app->execute(); | |
} catch(Exception $e) { | |
$testGenerator->createTest(serialize($app), $_GET, $_POST, $e)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment