This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233643 - PHP atoum file specific indentation
Summary: PHP atoum file specific indentation
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 10:25 UTC by Guile
Modified: 2013-07-30 15:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guile 2013-07-30 10:25:47 UTC
A unit test with atoum can be written with its fluid interface
$this
    ->if(true)
    ->and(true)
    ->then
        ->assert
             ->object($obj)->isInstanceOf('test')
    ->if(true)
    ->then
        ->assert
             ->integer($i)->isEqualTo(1)

But the automatic formatter make all "fluid" calls on the same indentation level, which break the readability of the code
$this
    ->if(true)
    ->and(true)
    ->then
    ->assert()
    ->object($obj)->isInstanceOf('test')
    ->if(true)
    ->then
    ->assert
    ->integer($i)->isEqualTo(1)

Is it possible to have some specific option for formatting the atoum php files, depending on keywords?
Comment 1 Ondrej Brejla 2013-07-30 15:53:25 UTC
Definitely not today. It's an enhancements, maybe in some of next releases.