Good night, I just installed phpunit by a .phar file and adding the path in windows but when I run the tests it returns me the following error:
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in C:\wamp64\www\QuebraLinha\test\CasoTeste.php on line 6
The test class I'm using is this:
<?php
require_once("../TextWrapExerciseInterface.class.php"); //Classe Interface fornecida pela Galoa
require_once("../QuebraLinha.class.php"); //Classe criada para implementar a classe Interface
class QuebraLinhaTest extends PHPUnit_Framework_TestCase {
function test01(){ //Confirma se o retorno é um array
$q = new QuebraLinha();
$returnTest = array();
$this->assertInternalType('array', $q->textWrap("Isso é um teste", 5));
}
}
?>
I'm not using any autoloader in the project. Thanks in advance.