public function testIfFalseCombination() { $this->contractor->expects($this->once())->method('getDefaultOptions')->will($this->returnValue(array())); $this->formMapper->ifFalse(true)->add('foo', 'bar')->ifEnd()->add('baz', 'foobaz'); $this->assertFalse($this->formMapper->has('foo')); $this->assertTrue($this->formMapper->has('baz')); }