Neos\Flow\Core\ApplicationContext::isDevelopment PHP Method

isDevelopment() public method

Returns TRUE if this context is the Development context or a sub-context of it
public isDevelopment ( ) : boolean
return boolean
    public function isDevelopment()
    {
        return $this->rootContextString === 'Development';
    }

Usage Example

 /**
  * @test
  * @dataProvider isMethods
  */
 public function contextMethodsReturnTheCorrectValues($contextName, $isDevelopment, $isProduction, $isTesting, $parentContext)
 {
     $context = new ApplicationContext($contextName);
     $this->assertSame($isDevelopment, $context->isDevelopment());
     $this->assertSame($isProduction, $context->isProduction());
     $this->assertSame($isTesting, $context->isTesting());
     $this->assertSame((string) $parentContext, (string) $context->getParent());
 }
All Usage Examples Of Neos\Flow\Core\ApplicationContext::isDevelopment