1. Go to this page and download the library: Download remi-san/ouroboros 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/ */
remi-san / ouroboros example snippets
$this->testHelper = new TestHelper(
new MakefileInfrastructureHelper($appBasePath), // or any other infra helper
new CommandLauncherApplicationHelper($appBasePath, 'make run'), // or any other app helper
new LoggerConditionWaiter( // if you want to follow a logfile for completion condition
$logFile,
new TextConditionMatcherFactory(
[
self::CONDITION_ONE => 'This is my first condition',
self::CONDITION_TWO => 'This is my second condition',
]
),
$logger,
5
)
);
/**
* Init.
*/
public function setUp()
{
$this->testHelper->setUp();
}
/**
* Close.
*/
public function tearDown()
{
$this->testHelper->tearDown();
}
/**
* @test
*/
public function itShouldWaitForAllConditionsAndSucceed()
{
$this->testHelper->wait([self::CONDITION_ONE, self::CONDITION_TWO]);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.