Tomasz
T.
IT Specialist / Test
Engineer
Temat: PHP : Netbeans IDE + PHPUnit + XAMPP
Czesc,mam problem z uruchomienim testow dla przykladowej klasy.
Robie niby wszystko z instrukcja: http://netbeans.org/kb/docs/php/phpunit.html#installin...
a mam taki komunikat po uruchomieniu testow:

W czym jest problem ?
Artur
Smolarek
Codernity.com -
Python/PHP masters -
Wrocław
Temat: PHP : Netbeans IDE + PHPUnit + XAMPP
Począwszy od phpunit w wersji 3.5.0 zamiast --log-xml używamy parametru --log-junit (changelog: https://github.com/sebastianbergmann/phpunit/blob/3.5/C....Podmiana parametru powinna wystarczyć.
Tomasz
T.
IT Specialist / Test
Engineer
Temat: PHP : Netbeans IDE + PHPUnit + XAMPP
OK dziekiPrzeinstalowalem Nebeans na wersje 7.1 i jest OK testy sie uruchamiaja ale jest jedno ale:
dodajac taki wpis :
/**
* @assert (0, 0) == 0
* @assert (0, 1) == 1
* @assert (1, 0) == 1
* @assert (1, 1) == 2
* @assert (1, 2) == 4
*/
Nastepnie klikam : Tools / Create PHPUnit tests
Tworzy mi sie plik z testami ale bez moich assertów ?
Powinny być takie wpisy :
Tomasz T. edytował(a) ten post dnia 05.02.12 o godzinie 12:10
/**
* Generated from @assert (0, 0) == 0.
*/
public function testAdd() {
$o = new Calculator;
$this->assertEquals(0, $o->add(0, 0));
}
Tomasz
T.
IT Specialist / Test
Engineer
