Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429737
StringContainsIgnoringCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
810 B
Referenced Files
None
Subscribers
None
StringContainsIgnoringCase.php
View Options
<?php
namespace
Hamcrest\Text
;
/*
Copyright (c) 2010 hamcrest.org
*/
/**
* Tests if the argument is a string that contains a substring ignoring case.
*/
class
StringContainsIgnoringCase
extends
SubstringMatcher
{
public
function
__construct
(
$substring
)
{
parent
::
__construct
(
$substring
);
}
/**
* Matches if value is a string that contains $substring regardless of the case.
*
* @factory
*/
public
static
function
containsStringIgnoringCase
(
$substring
)
{
return
new
self
(
$substring
);
}
// -- Protected Methods
protected
function
evalSubstringOf
(
$item
)
{
return
(
false
!==
stripos
((
string
)
$item
,
$this
->
_substring
));
}
protected
function
relationship
()
{
return
'containing in any case'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 17:57 (8 h, 53 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/d9/49a94d2d629c4f69a45a130253a7
Default Alt Text
StringContainsIgnoringCase.php (810 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment