Ejemplo n.º 1
0
 /**
  * Test registering a new Scheme
  *
  * @param        string $scheme
  * @param        string $class
  * @dataProvider registeringNewSchemeProvider
  */
 public function testRegisteringNewScheme($scheme, $class)
 {
     $this->assertAttributeNotContains($class, 'schemeClasses', '\\Zend\\Uri\\UriFactory');
     UriFactory::registerScheme($scheme, $class);
     $this->assertAttributeContains($class, 'schemeClasses', '\\Zend\\Uri\\UriFactory');
     UriFactory::unregisterScheme($scheme);
     $this->assertAttributeNotContains($class, 'schemeClasses', '\\Zend\\Uri\\UriFactory');
 }