TS 74 PHP Zend

PHP Zend Framework Support Test Specification for NetBeans 7.4

Author: Milan Molda
Original Author: Filip Zamboj, minor updates Vladimir Riha
Version: 2.0
Last update: 23rd July 2013
Introduction: PHP Zend and Zend 2 Framework Support Test Specification
Requirements: zend & zend2 installed, php installed, apache installed
Mac OS specific details: To find Options on MacOS, go to Netbeans menu -> Preferences

Contents


Test suite: Zend Framework

  1. Create Zend project
    1. In Projects window, choose File > New Project.
    2. In Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Accept default values for the rest fields, press Next button.
    4. In last step check Zend PHP Web Framework
    5. Press Finish button
    • EXPECTED RESULT: Created Php project appears on Project tab with framework specific icon.

  1. Use Filter on ZEND Commands
    1. invoke context menu on project node
    2. run Zend -> Run Command
    3. type to filter create contr
    • EXPECTED RESULT: Only tasks that correspond to filter are present in matching tasks window. There is task description below matching tasks window
  2. Invoke ZEND Command
    1. check Keep this dialog opened
    2. invoke create module task with parameters 'home'
    • EXPECTED RESULT: Run Zend Command dialog will be opened. You should see similar output in output window and following folder structure of application/modules should be created according to the example below.
OUTPUT:
Creating the following module and artifacts:
/var/www/PhpProject139/application/modules/home/controllers
/var/www/PhpProject139/application/modules/home/models
/var/www/PhpProject139/application/modules/home/views
/var/www/PhpProject139/application/modules/home/views/scripts
/var/www/PhpProject139/application/modules/home/views/helpers
/var/www/PhpProject139/application/modules/home/views/filters
Updating project profile '/var/www/PhpProject139/.zfproject.xml'

FOLDER STRUCTURE: 
`-- application
    |-- models
        |-- home



Test suite: Zend 2 Framework

  1. Create Zend 2 project

File:TS_74_PHP_Zend2.png

    1. In Projects window, choose File > New Project.
    2. In Categories list, select PHP, in the Projects area, choose PHP Application to create an empty project and click Next.
    3. Accept default values for the rest fields, press Next button.
    4. In last step check Zend 2 PHP Web Framework
    5. Press Finish button
    • EXPECTED RESULT: Created PHP project appears on Project tab with framework specific icon. File structure looks like the one on picture bellow.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo