TS 72 PHP Interface

PHP Interface Test Specification for NetBeans 7.2

Author: Vladimir Riha
Version: 1.0
Last update: 27th March 2012 Introduction: This specification provides default settings of NetBeans IDE
Requirements: Apache HTTP Server installed, PhpUnit installed, PHP installed, Symfony framework installed, Zend Framework installed.

Mac OS specific details: To find Options on MacOS, go to Netbeans menu -> Preferences

issue 195796


Contents


Test suite: Verify Correct Default PHP Interface Setting

Purpose: Verify that all default options and settings are present and they values are correctly set.

  1. Verify PHP Options are present
    1. Choose Tools -> Options
    • EXPECTED RESULT PHP tab is present and
  1. Verify PHP options initial settings
    1. choose Tools -> Options -> PHP -> General
    • EXPECTED RESULT
    • PHP 5 Interpreter contains path to php if php was installed to system default location

  1. Verify PHP options initial settings
    1. choose Tools -> Options -> PHP -> Debugging
    • EXPECTED RESULT
    • Output Window option is enabled by default
    • Debugger Port is set up to 9000
    • Session ID is netbeans-xdebug
    • Stop at the first line is checked by default
  1. Verify PHPUnit options initial settings
    1. choose Tools -> Options -> PHP -> Unit Testing
    • EXPECTED RESULT
    • PHPUnit Script path text field is writable
    • Path to php unit contains correct value if php unit was installed to default location
    • PHPUnit Skeleton Generator path text field is writable
    • Path to PHPUnit Skeleton Generator contains correct value if PHPUnit Skeleton Generator was installed to default location

  1. Verify Hudson options initial settings
    1. choose Tools -> Options -> PHP -> Hudson
    • EXPECTED RESULT
    • PPW Script path text field is writable
    • Job Config path text field is writable
  1. Verify ApiGen options initial settings
    1. choose Tools -> Options -> PHP -> ApiGen
    • EXPECTED RESULT
    • ApiGen Script path text field is writable
  1. Verify Symfony2 options initial settings
    1. choose Tools -> Options -> PHP -> Symfony2
    • EXPECTED RESULT
    • Symfony path text field is writable
    • Ignore cache directory is checked


  1. Verify Symfony options initial settings
    1. choose Tools -> Options -> PHP -> Symfony
    • EXPECTED RESULT
    • Symfony script path text field is writable
    • Path to symfony contains correct value if symfony was installed to default location
    • text field for default paramters for project is writable
    • text field for default paramters for applications is writable and contains default value
--escaping-strategy=on --csrf-secret=UniqueSecret

  1. Verify Zend options initial settings
    1. choose Tools -> Options -> PHP -> Zend
    • EXPECTED RESULT
    • Zend Script path text field is writable
    • Path to php unit contains correct value if zend was installed to default location
  1. Verify Doctrine2 options initial settings
    1. choose Tools -> Options -> PHP -> Doctrine2
    • EXPECTED RESULT
    • Doctrine2 script path text field is writable
  1. Verify Editor->Hints Options
    1. Choose Tools -> Options -> Editor -> Hints and
    • EXPECTED RESULT PHP and Javascript language is present in drop-down menu. All stable features for PHP and all General features for Javascript are enabled by default. Experimental PHP feature are not enabled. EDIT: Because of new features, experimental features are also enabled by default - see New Old Hints
  2. Verify Editor -> Code Templates for Presence of All necessarry languages
    1. Choose Tools -> Options -> Editor -> Code Templates
    • EXPECTED RESULT:

language drop down menu contains following languages (as well)

    • Apache Conf file
    • Cascading Style Sheet
    • DTD
    • HTML
    • INI file
    • JSON
    • JavaScript
    • JavaScript comments
    • Neon file
    • PHP
    • SQL
    • Twig file
    • YAML
  1. Verify Editor -> Code Templates for non empty default values
    1. Choose Tools -> Options -> Editor -> Code Templates
    2. Choose PHP Language
    • EXPECTED RESULT:
    • Verify there is Abbreviation non empty for each template
    • Verify there is Expanded Text non empty for each template

  1. Verify Editor -> General for correct default settings
    1. Choose Tools -> Options -> Editor -> General
    • EXPECTED RESULT:
    • Code Folding is enabled by default
    • No item from Collapse By Default section is enabled

  1. Verify Editor -> default Highlighting settings
    1. Choose Tools -> Options -> Editor -> Highlighting
    2. Choose PHP Language
    • EXPECTED RESULT: Mark Occurrences from symbol under caret is enabled by default and Keep Marks is checked

  1. Verify Editor -> Code Completion default settings
    1. Choose Tools -> Options -> Editor -> Code Completion
    2. Choose PHP Language
    • EXPECTED RESULT: these items are selected by default:
    • Enable Auto Popup Window for All Possible Situations
    • Code Completion for Class Methods is set to Also static methods after "->"
    • Code Completion for Use Smart Parameters Pre-Filling is checked by default
    • Code Completion for Variables is set to All Variables
    • Type of Code Completion (PHP 5.3 Only) is set to Smart


  1. Verify Options -> Fonts & Colors for Presence of All necessarry languages
    1. Choose Tools -> Options -> Fonts & Colors -> Syntax
    • EXPECTED RESULT: language drop down menu contains following languages (as well)
    • Apache Conf file
    • Cascading Style Sheet
    • DTD
    • HTML
    • INI file
    • JSON
    • JavaScript
    • JavaScript comments
    • Neon file
    • PHP
    • SQL
    • Twig file
    • YAML
  1. Verify Editor -> Formatting for Presence of all PHP formatting settings
    1. Choose Tools -> Options -> Editor -> Formatting
    2. Choose language PHP
    • EXPECTED RESULT: Category contains following items: Tabs and Indents, Alignment (BUG 181578), Braces, Blank Line, Spaces,Wrapping, Uses

Test suite: Verify Correct PHP Interface Setting After Successful PHP Module Activation

  1. Verify Tools
    1. activate PHP module in Tools -> Plugins -> Installed -> PHP and choose activate
    2. Open Tools -> Options and select PHP tab
    • EXPECTED RESULT: There is a tab "Debugging" and it looks like the image below

File:DebuggingTabScreen.jpg

Test suite: Verify Correct PHP Interface Setting After Successful PHP Project Creation

Purpose: Verify that all default options and settings are present and they values are correctly set.

  1. Verify Interface after Project is created
    1. Create Sample PHP Project TodoList
    • EXPECTED RESULT: project is created and Project Tab contains tree with a root of Created Project with a correct name and two children Source Files and Include Path. Buttons Debug and Run are not shadowed anymore. You can find several mistakes in tasks window (note that in newer version task in AirAlliance are classified as Warnings, therefore to see them in Tasks window, you have to adjust select filter to show Warning as well). You, eventually, can compare to the interface screenshot

File:verify_interface_after_project_created_TS_67_PHP_Interface.png

Test suite: Verify Correct Menu Setting After Successful PHP Project Creation

Purpose: Verify that all default options and settings are present and they values are correctly set.

  1. Verify Navigate Menu after Project is created
    1. invoke Main Menu -> navigate
    • EXPECTED RESULT: Following items are enabled
    • Go To File
    • Go To Type
    • Go To Symbol
  1. Verify Run Menu after Project is created
    1. invoke Main Menu -> Run
    • EXPECTED RESULT: Following items are enabled
    • Run Project (<Project Name>)
    • Test Project (<Project Name>)
    • Set Project Configuration
    • * Default (set)
    • * Customize ...
    • Set Main Project
    • * None (set)
    • * <project name>
    • Test File
  1. Verify Debug Menu after Project is created
    1. invoke Main Menu -> Debug
    • EXPECTED RESULT: following items are enabled
    • Debug Project <Project Name> (set)
    • Attach Debugger
    • New Watch
  1. Verify Window Menu after Project is created
    1. invoke Main Menu -> Window -> Other
    • EXPECTED RESULT: following items are enabled
    • Exception Reporter
    • CSS Preview
    • CSS Style Builder

Test suite: Verify Correct Project Settings After Successful PHP Project Creation

Purpose: Verify that all default options and settings are present and they values are correctly set.

  1. Verify Properties -> Sources Window
    1. invoke Properties from project context menu (right click)
    • EXPECTED RESULT:
    • Project Folder contains correct path and it's NOT writable
    • Source Folder contains correct path and it's NOT writable
    • Test Folder is blank and it's writable
    • Web Root contains Source Folder and it IS writable (may vary on diferrent systems but make sure it makes sense)
    • Copy Files to Another Location is not enabled by default
    • Copy to Folder is disabled
    • Encoding is set to UTF-8 (may vary)
    • PHP version is set to PHP 5.4
    • Allow short tags is enabled by default
    • Allow ASP tags is disabled by default

  1. Verify Properties Run Configuration Window
    1. invoke Properties from project context menu (right click)
    2. choose RUN Configuration
    • EXPECTED RESULT:
    • Configuration drop down menu is set to default
    • Run as is set to Local Web Site
    • Project URL is http://localhost/<project_name>
    • Index File is index.php
    • Arguments are empty

    1. Choose Run As Remote Web Site
    • EXPECTED RESULT:
    • Remote connection contains <no configuration>
    • Upload Files is set to On Run
    • There is error message on the bottom of dialog No remote configuration selected

    1. Choose Run As Script
    • EXPECTED RESULT:
    • PHP interpreter is the same as in Tools -> Options -> PHP
    • Use Default PHP interpreter is enabled

    1. Choose Run As PHP Built-in Web Server
    • EXPECTED RESULT:
    • Hostname is set to "localhost"
    • Port is set to 8000
    • Router script is empty and writable

  1. Verify Properties Formatting Window
    1. invoke Properties from project context menu (right click)
    2. choose Formatting
    • EXPECTED RESULT:
    • There is preview displayed and coloured
    • Use Global Options is enabled

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