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.