jeudi 1 février 2018

PHPUnit testing failure?

My code

<?php

require('PHPUnit/Autoload.php');

class MyProceduralTest extends PHPUnit_Framework_TestCase {

    public function testDumb()
    {
        $this->assertTrue(true);
    }

}
?>

I got the error at the time of running my phpunit test.

i got the error:

phpunit tests

PHPUnit 3.7.21 by Sebastian Bergmann.

E

Time: 0 seconds, Memory: 4.00Mb

There was 1 error:

1) C:\xampp\htdocs\Yuvaraj\General\PHPUnit test\tests\tests.phpt PHPUnit_Framework_Exception: Invalid sections formats in test file: C:\xampp\htdocs\Yuvaraj\General\PHPUnit test\tests\tests.phpt

FAILURES! Tests: 1, Assertions: 1, Errors: 1.

Aucun commentaire:

Enregistrer un commentaire