Fatal error: Class 'PHPUnit_Framework_TestCase' nicht gefunden

Ich bin mit XAMPP 1.8.1, Windows 7 64-bit, Netbeans IDE 7.4
Ich habe PHPUnit installiert.
Wenn ich einen code, ich erhalte die folgende Fehlermeldung.

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in D:\xampp\htdocs\PHPUnit\index.php in Zeile 6

Der Code ist:

<?php

class StackTest extends PHPUnit_Framework_TestCase {

    public function testPushAndpop() {
        $stack = array();
        $this->assertEquals(0, count($stack));

        array_push($stack, 'foo');
        $this->assertEquals('foo', $stack[count($stack) - 1]);
        $this->assertEquals(1, count($stack));

        $this->assertEquals('foo', array_pop($stack));
        $this->assertEquals(0, count($stack));
    }

}

?>

Habe ich Hinzugefügt, D:\xampp\php in der Umgebungsvariable PATH
Mir jemand empfehlen, wie dieses problem zu lösen?
Vielen Dank im Voraus.

InformationsquelleAutor user2118784 | 2014-02-14

Schreibe einen Kommentar