Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHPUnit] Kilka pytań do metod dispatch(), assertModule() itp
Sajrox
post 2.09.2009, 20:03:31
Post #1





Grupa: Zarejestrowani
Postów: 254
Pomógł: 7
Dołączył: 9.10.2007
Skąd: Poznań

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


Witam Panowie i Panie smile.gif

Problem z uruchomieniem rozwiązany. Teraz kolejne kłopoty sad.gif



Gdy mam taką ścieżkę aplikacji do tetsowania: http://localhost/admin/pages/lista

To jakie parametry musze podać w:
  1. $this->dispatch(?);
  2. $this->assertRoute(?); // ?
  3. $this->assertModule(?); // ? gdy podaje admin nie działa -> dostaje Zend_Controller_Exception: No default module defined for this application
  4. $this->assertController(?); // pages
  5. $this->assertAction(?); // lista
  6. $this->assertNotRedirect();



Mam jeszcze problem z generowaniem raportów: otrzymuje:

  1. C:\wamp\www\____ZEND____\tests>phpunit --configuration phpunit.xml
  2. System nie może odnaleźć określonej ścieżki.
  3.  
  4.  


Plik phpunit.xml

  1. <phpunit bootstrap="./index.php"
  2. colors="true"
  3. convertErrorsToExceptions="true"
  4. convertNoticesToExceptions="true"
  5. convertWarningsToExceptions="true"
  6. stopOnFailure="false"
  7. >
  8.  
  9. <testsuite name="MyApp">
  10. <directory>./</directory>
  11. </testsuite>
  12.  
  13. <filter>
  14. <whitelist>
  15. <directory suffix=".php">../application/</directory>
  16. <exclude>
  17. <directory suffix=".phtml">../application/</directory>
  18. </exclude>
  19. </whitelist>
  20. </filter>
  21.  
  22. <logging>
  23. <log type="coverage-html" target="./application/log/report" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80" />
  24. <log type="testdox" target="./application/log/testdox.html" />
  25. </logging>
  26. </phpunit>
  27.  
  28.  


Ten post edytował Sajrox 3.09.2009, 09:36:56
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: 22.06.2025 - 18:31