3
Good evening, 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 am not using any autoloader in the project. Since I thank you
How are you calling the command in cmd?
– Guilherme Nascimento
phpunit Casoteste.php
– Gabriel Ribeiro
Which version of phpunit did you download? 6.3 stable or 5.7?
– Guilherme Nascimento
version 6.3 stable
– Gabriel Ribeiro