/** * Get a parameter of the config or the entire collection * * @param bool $key The key of the parameter * @return Collection */ public final function getConfig($key = false) { return $key ? $this->config->get($key) : $this->config; }
public function testPOP() { $this->protocol = new POP(); $this->protocol->setMailserver('pop.gmail.com')->setPort(995)->setFolder('INBOX')->setSsl(true); $this->assertNotNull($this->protocol->connect($this->config->get('username'), $this->config->get('password'))); }