PHP code example of sycu / task-solver-core

1. Go to this page and download the library: Download sycu/task-solver-core library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sycu / task-solver-core example snippets


$generator = new Solver\Generator\TaskGenerator('My\Tasks', 'src/Tasks', 'tasks');

$generator->generate('AwesomeTask');

$tasksLocator = new Solver\TasksLocator('My\Tasks', 'src/Tasks');
$testsRunner = new Solver\Runner\TestsRunner(new Solver\Runner\Progress\ConsoleProgress(new Solver\Output\ConsoleOutput()), $tasksLocator, 'tasks');

$testsRunner->run('Task[3-9]', false);