![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 24.08.2017 Ostrzeżenie: (0%) ![]() ![]() |
Witam . Instaluje od nowa paczkę symfony 3.3 . Wpisuje w cmd phpunit tests\AppBundle\Controller\DefaultContr
ollerTest.php i pokazuje mi komunikat : No test executed . Co robię źle? |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 272 Pomógł: 19 Dołączył: 29.07.2006 Ostrzeżenie: (10%) ![]() ![]() |
musisz najpierw napisać test.
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 24.08.2017 Ostrzeżenie: (0%) ![]() ![]() |
Mam napisany test w tym DefaultControllerTest.php
Ten post edytował symer 27.07.2018, 09:35:55 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 226 Pomógł: 25 Dołączył: 22.05.2011 Ostrzeżenie: (0%) ![]() ![]() |
Pokaż tą klasę. Sprawdź też wersję PHPUnita.
|
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 66 Pomógł: 0 Dołączył: 24.08.2017 Ostrzeżenie: (0%) ![]() ![]() |
To jest klasa testowa co już była wbudowana w Symfony. No ale ok :
A phpunit.xml
Gdy dodam/edytuję klasę z tymi wierszami:
To znów pokaże mi się komunikat : C:\xampp\htdocs\heroku\mototest3>phpunit tests\AppBundle\Controller\DefaultContr ollerTest.php PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in C:\xampp\htdoc s\heroku\mototest3\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Tes t\KernelTestCase.php on line 25 Fatal error: Class 'PHPUnit\Framework\TestCase' not found in C:\xampp\htdocs\her oku\mototest3\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Test\Ker nelTestCase.php on line 25 I za cholerę nie mogę tego naprawić. Może wersja phpunit nie ta. Mam wersje symfony 3.3 Ten post edytował symer 28.07.2018, 11:03:27 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 25.08.2025 - 09:28 |