Solit 2012, Enterprise разработка PHP приложений, Иван Захарченко

  • Published on
    26-Dec-2014

  • View
    566

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Transcript

  • 1.
  • 2. HUDSONEnterprise PHP
  • 3. Zend Framework PHPUnit Mercurial Hudson
  • 4. HUDSON (ci).Mercurial .PHPUnit , PEAR, PHP
  • 5. PEAR http://pear.php.net/go-pear.phar "php go-pear.phar" ( windows ) "pear version" PHPUnit "pear channel-discover pear.phpunit.de" "pear install phpunit/PHPUnit" Zend_Tool linux: alias zf "zend/bin/zf.sh" windows: "zend/bin/" "zf" "zf create project zf-project" "phpunit --log-junit path-to-zf-project/tests/tmp.xml path-to-zf-project/tests"
  • 6. project phpunit.xml - PHPUnit|-- application|-- data|-- docs bootstrap.php - , index.php|-- library|-- public ControllerTestCase.php - - `-- tests |-- application | |-- models | | `-- PageTest.php | |-- controllers | | |-- IndexControllerTest.php | | `-- ErrorControllerTest.php | |-- ControllerTestCase.php | `-- bootstrap.php |-- library | `-- bootstrap.php `-- phpunit.xml
  • 7. IndexControllerTest.php ErrorControllerTest.php

Recommended

View more >