public function testRemove() { $set = new Text('B-G'); $this->assertSame((string) $set->remove('A-J'), ''); $set = new Text('B-G'); $this->assertSame((string) $set->remove('C-E'), 'B-C,E-G'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('E'), 'B-G'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('-C'), 'C-G'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('B-D'), 'D-G'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('D-'), 'B-D'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('D-'), 'B-D'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('D-G'), 'B-D'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('D-G'), 'B-D'); $set = new Text('B-G'); $this->assertSame((string) $set->remove('B-G'), ''); $set = new Text('B-G'); $this->assertSame((string) $set->remove('-'), ''); }