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

testSubmitForwardsNullIfNotClearMissingButValueIsExplicitlyNull() public method

    public function testSubmitForwardsNullIfNotClearMissingButValueIsExplicitlyNull()
    {
        $child = $this->getMockForm('firstName');

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

        $child->expects($this->once())
            ->method('submit')
            ->with($this->equalTo(null));

        $this->form->submit(array('firstName' => null), false);
    }
CompoundFormTest