Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12943912
TagTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
842 B
Referenced Files
None
Subscribers
None
TagTest.php
View Options
<?php
namespace
Keruald\Yaml\Tests\Tags
;
use
Keruald\Yaml\Tags\Tag
;
use
PHPUnit\Framework\TestCase
;
class
TagTest
extends
TestCase
{
public
static
function
provideTag
()
:
Tag
{
return
new
class
()
extends
Tag
{
public
function
getPrimaryTag
()
:
string
{
return
"tag:example.com,2000:test"
;
}
public
function
getPrivateTag
()
:
string
{
return
"test"
;
}
public
function
handle
(
mixed
$data
)
:
string
{
return
""
;
}
};
}
public
function
testRegister
()
{
$handlers
=
[];
$tag
=
self
::
provideTag
();
$tag
->
register
(
$handlers
);
$this
->
assertArrayHasKey
(
"tag:example.com,2000:test"
,
$handlers
);
$this
->
assertArrayHasKey
(
"test"
,
$handlers
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 17:00 (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3160767
Default Alt Text
TagTest.php (842 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment