PHP code example of webit / test-tools
1. Go to this page and download the library: Download webit/test-tools 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/ */
webit / test-tools example snippets
use Webit\Tests\Behaviour\Bundle\Kernel as BaseKernel;
class AppKernel extends BaseKernel
{
public function registerBundles()
{
return array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new My\BrandNewBundle();
); // array of your Bundles
}
}
use Webit\Tests\Behaviour\Bundle\BundleConfigurationContext;
class FeatureContext extends BundleConfigurationContext
{
public function __construct()
{
parent::__construct(new AppKernel());
}
}