segment: A getter which returns the Segment which is at the given
position.
public segment ( String $id ) : |
||
$id | String | The ID of the required Segment. |
return |
/** * @Test */ public function testRemoveWithReorder() { $this->bread->append('one'); $this->bread->append('two'); $this->bread->remove(0, true); $this->assertEquals('two', $this->bread->segment(0)->get('raw')); }