1. Go to this page and download the library: Download spacegrass/bareback 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/ */
spacegrass / bareback example snippets
use Spacegrass\Bareback\TestCase as BaseTestCase;
class TestCase extends BaseTestCase
{
//
}
/**
* @withoutFramework
*/
public function test_something_quickly()
{
//
}
/**
* @withoutFramework
*/
class FastTests extends TestCase
{
public function test_something_without_framework_by_default()
{
//
}
/**
* @withFramework
*/
public function test_something_with_the_framework_for_some_reason()
{
//
}
}]
class SometimesRunningWithFrameworkTestCase extends TestCase
{
public function noFrameworkSetup()
{
// register fake repositories or mock something out, for example
}
public function frameworkSetup()
{
// perhaps add something specific to your database migrations or anything else
// the is dependent on the framework
}
class RunTestsWithoutFrameworkByDefaultTestCase extends TestCase
{
protected $withFramework = false;
public function test_runs_with_out_framework()
{
//
}
/**
* @withFramework
*/
public function test_
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.