Nelmio\Alice\Generator\GenerationContextTest::testAccessors PHP Method

testAccessors() public method

public testAccessors ( )
    public function testAccessors()
    {
        $context = new GenerationContext();
        $this->assertTrue($context->isFirstPass());
        $this->assertFalse($context->needsCompleteGeneration());
        $context->setToSecondPass();
        $this->assertFalse($context->isFirstPass());
        $this->assertFalse($context->needsCompleteGeneration());
        $context->markAsNeedsCompleteGeneration();
        $this->assertFalse($context->isFirstPass());
        $this->assertTrue($context->needsCompleteGeneration());
        $context->unmarkAsNeedsCompleteGeneration();
        $this->assertFalse($context->isFirstPass());
        $this->assertFalse($context->needsCompleteGeneration());
    }