protected function OembedTestHelper::xpathArgsFromAttributes in oEmbed 7
Same name and namespace in other branches
- 8 oembed.test \OembedTestHelper::xpathArgsFromAttributes()
- 7.0 oembed.test \OembedTestHelper::xpathArgsFromAttributes()
File
- ./
oembed.test, line 87 - Tests for oembed.module.
Class
- OembedTestHelper
- @file Tests for oembed.module.
Code
protected function xpathArgsFromAttributes(array $attributes = array()) {
$args = array();
foreach ($attributes as $key => $value) {
$args[':' . $key] = $value;
}
return $args;
}