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

Summary: PHP atoum file specific indentation
Product: php Reporter: Guile
Component: Formatting & IndentationAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.