Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5984480
functions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
functions.php
View Options
<?php
use
Hamcrest\Matcher
;
use
WMDE\HamcrestHtml\AttributeMatcher
;
use
WMDE\HamcrestHtml\ChildElementMatcher
;
use
WMDE\HamcrestHtml\ClassMatcher
;
use
WMDE\HamcrestHtml\ComplexTagMatcher
;
use
WMDE\HamcrestHtml\DirectChildElementMatcher
;
use
WMDE\HamcrestHtml\HtmlMatcher
;
use
WMDE\HamcrestHtml\RootElementMatcher
;
use
WMDE\HamcrestHtml\TagNameMatcher
;
use
WMDE\HamcrestHtml\TextContentsMatcher
;
if
(
!
function_exists
(
'htmlPiece'
)
)
{
/**
* @param Matcher|null $elementMatcher
*
* @return HtmlMatcher
*/
function
htmlPiece
(
?
Matcher
$elementMatcher
=
null
)
{
return
HtmlMatcher
::
htmlPiece
(
$elementMatcher
);
}
}
if
(
!
function_exists
(
'havingRootElement'
)
)
{
function
havingRootElement
(
?
Matcher
$matcher
=
null
)
{
return
RootElementMatcher
::
havingRootElement
(
$matcher
);
}
}
if
(
!
function_exists
(
'havingDirectChild'
)
)
{
function
havingDirectChild
(
?
Matcher
$elementMatcher
=
null
)
{
return
DirectChildElementMatcher
::
havingDirectChild
(
$elementMatcher
);
}
}
if
(
!
function_exists
(
'havingChild'
)
)
{
function
havingChild
(
?
Matcher
$elementMatcher
=
null
)
{
return
ChildElementMatcher
::
havingChild
(
$elementMatcher
);
}
}
if
(
!
function_exists
(
'withTagName'
)
)
{
/**
* @param Matcher|string $tagName
*
* @return TagNameMatcher
*/
function
withTagName
(
$tagName
)
{
return
TagNameMatcher
::
withTagName
(
$tagName
);
}
}
if
(
!
function_exists
(
'withAttribute'
)
)
{
/**
* @param Matcher|string $attributeName
*
* @return AttributeMatcher
*/
function
withAttribute
(
$attributeName
)
{
return
AttributeMatcher
::
withAttribute
(
$attributeName
);
}
}
if
(
!
function_exists
(
'withClass'
)
)
{
/**
* @param Matcher|string $class
*
* @return ClassMatcher
*/
function
withClass
(
$class
)
{
// TODO don't allow to call with empty string
return
ClassMatcher
::
withClass
(
$class
);
}
}
if
(
!
function_exists
(
'havingTextContents'
)
)
{
/**
* @param Matcher|string $text
*
* @return TextContentsMatcher
*/
function
havingTextContents
(
$text
)
{
return
TextContentsMatcher
::
havingTextContents
(
$text
);
}
}
if
(
!
function_exists
(
'tagMatchingOutline'
)
)
{
/**
* @param string $htmlOutline
*
* @return ComplexTagMatcher
*/
function
tagMatchingOutline
(
$htmlOutline
)
{
return
ComplexTagMatcher
::
tagMatchingOutline
(
$htmlOutline
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 23:22 (2 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
47/f5/92c455ee0ea126cae9cf6556bc0e
Default Alt Text
functions.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment