Пример #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testClassNameInvalidArgument()
 {
     TypeUtilities::getClassName(42);
 }
Пример #2
0
 /**
  * Determine whether the given class is registered as a file loader.
  *
  * @param string|\Sitegear\Config\FileLoader\FileLoaderInterface $fileLoader Class name of the file loader to
  *   check for, or a class implementing FileLoaderInterface.
  *
  * @return boolean Whether or not the given file loader is registered with the ConfigLoader.
  */
 public function hasFileLoader($fileLoader)
 {
     return isset($this->fileLoaders[TypeUtilities::getClassName($fileLoader)]);
 }
Пример #3
0
 /**
  * @inheritdoc
  */
 public function isRegistered($renderer)
 {
     return array_key_exists(TypeUtilities::getClassName($renderer), $this->registry);
 }