/** * @expectedException RuntimeException * @expectedExceptionMessage New tab was added automatically when you have added field or group. You should close current tab before adding new one OR add tabs before adding groups and fields. */ public function testGroupInTabException() { $this->baseGroupedMapper->with('fooGroup'); $this->baseGroupedMapper->tab('fooTab'); }
public function testEnd() { $this->assertEquals($this->baseGroupedMapper, $this->baseGroupedMapper->with('fooGroup')); }