public theXmlShouldUseTheNamespace ( $namespace ) |
public function theXmlShouldUseTheNamespace($namespace)
{
$namespaces = $this->getDom()->getNamespaces();
if (!in_array($namespace, $namespaces)) {
throw new \Exception("The namespace '{$namespace}' is not used");
}
}