Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP][PHPUnit]w trakcie phpunit-coverage "Trying to @cover or @use not existing method"
koszykarze
post 25.05.2016, 13:12:25
Post #1





Grupa: Zarejestrowani
Postów: 119
Pomógł: 0
Dołączył: 10.10.2015
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Rozpoczynam tutorial o PHPUnit z Netbeans i już na początku coś nie gra.

Testowanie jedynej klasy projektu treningowego działa. Gdy chcę code-coverage to wywala mi:

  1. "C:\wamp\www\treningPHPUnitSymfony2.8\bin\phpunit.bat" "--colors" "--log-junit" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-log.xml" "--coverage-clover" "C:\Users\chiny\AppData\Local\Temp\nb-phpunit-coverage.xml" "C:\Program Files\NetBeans 8.1\php\phpunit\NetBeansSuite.php" "--" "--run=C:\wamp\www\Calculator-PHPUnit1\test\src\CalculatorTest.php"
  2. PHPUnit 4.5.1 by Sebastian Bergmann and contributors.
  3.  
  4. Configuration read from C:\wamp\www\Calculator-PHPUnit1\test\phpunit.xml
  5.  
  6. Trying to @cover or @use not existing method "Calculator::plus".


Mógłby ktoś rzucić okiem na ten treningowy projekt?
https://github.com/sruj/treningPHPUnitCalcu.../Calculator.php
https://github.com/sruj/treningPHPUnitCalcu...master/test/src
https://github.com/sruj/treningPHPUnitCalcu...est/phpunit.xml
Go to the top of the page
+Quote Post
Pyton_000
post 25.05.2016, 13:28:23
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


Przy @cover podaj całą nazwę klasy z NS
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 27.04.2024 - 20:20