public function add(Provider $provider) { $this->providers[] = $provider; return $this; }
public function testAdd() { $mock = $this->getMock('Geocoder\\Provider\\Provider'); $chain = new Chain(); $chain->add($mock); }