Closed utopszkij closed 7 years ago
tudnál csinálni egy külön branchet, amelyikben ez benne van?
megprobálom...
megvan a branch: develop-unittest-gond. S commit ugyan zöldnek látszik, de ha megynitod a snippable log file-t akkor abban látszik a fatal error (a build_ci reszben)
az a probléma, hogy két AdaloginController osztályod van. Az egyis a site-ban, a másik az admin-ban. A unit tesztek között pedig van olyan, amelyik a site-ot, és olyan is, amelyik az admin-t require-eli. Emiatt névütközés van. Vagy nevezd át az egyiket, vagy tedd őket külön namespace-be.
Hát ez bizony lehet. Viszont a joomlának sajnos ez a név konvenciója. esetleg a az unittest két teljesen külön menetben testekne két külön test könyvtárat: test-site és test-admin ?
nekem mondjuk az is fura, hogy ha az unittest fatál erroral elszáll akkor zöld lesz a branch commit.....
sajnos a namespace kezelés nagyon szar a php -ban. Minden egyes fileba be kellene irni ehez egy sort. Ez nem megoldás.
a test két külön álló phpunittest futásra bontása megoldotta a gondot. :)
Megoldva.
Ha az alabbi file-t beteszem a "develop" branch test konyvtaraba akkor a UNIT Test "PHP Fatal error AdaloginController undefined..." hibauzenetet ad. En ha a szemem kinezem akkor sem latok benne hibat. Enelkul a file nelkul a unittest lemegy. Az ott leve adminControlleTestr file is teljesen hasonlo szerkezetu, es azt elfogadja. Nem ertem.