PHP code example of qase / codeception-reporter
1. Go to this page and download the library: Download qase/codeception-reporter 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/ */
qase / codeception-reporter example snippets
namespace Tests\Unit;
use Qase\Codeception\Attributes\Field;
use Qase\Codeception\Attributes\QaseId;
use Qase\Codeception\Attributes\Suite;
use Tests\Support\UnitTester;
class FirstTest extends \Codeception\Test\Unit
{
protected UnitTester $tester;
protected function _before()
{
}
#[QaseId(1)]
#[Field('description', 'My description')]
public function testSomeFeature()
{
$this->assertTrue(true);
}
#[Suite("My suite")]
public function testSomeFeatureFailed()
{
$this->assertTrue(false);
}
}