1. Go to this page and download the library: Download probedock/probedock-phpunit 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/ */
probedock / probedock-phpunit example snippets
namespace Tests\AppBundle\Controller;
use ProbeDock\ProbeDockPHPUnit\ProbeDock;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase {
/**
* @ProbeDock(name="Custom name different than the function name", category="Web Test", tags="api,http,get")
*/
public function testIndex() {
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text());
}
}
namespace Doctrine\Common\Annotations {
ionReader;
AnnotationReader::addGlobalIgnoredName('expectedException');
// Repeat the line above to ignore other annotations...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.