Symfony\Component\Form\Tests\CompoundFormTest::testNotEmptyIfChildNotEmpty PHP Method

testNotEmptyIfChildNotEmpty() public method

    public function testNotEmptyIfChildNotEmpty()
    {
        $child = $this->getMockForm();
        $child->expects($this->once())
            ->method('isEmpty')
            ->will($this->returnValue(false));

        $this->form->setData(null);
        $this->form->add($child);

        $this->assertFalse($this->form->isEmpty());
    }
CompoundFormTest