segment() public méthode

segment: A getter which returns the Segment which is at the given position.
public segment ( String $id ) : Segment
$id String The ID of the required Segment.
Résultat Segment
 /**
  * @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'));
 }