/** * @expectedException RuntimeException */ public function testAccess() { $scheme = new Scheme(); $this->assertNull($scheme->get()); $scheme->set('HTTP'); $this->assertSame('http', $scheme->get()); $scheme->set('ftp'); $this->assertSame('ftp://', $scheme->getUriComponent()); $scheme->set('svn'); }