Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
hamcrest /
hamcrest-php /
tests /
Hamcrest /
Delete
Unzip
Name
Size
Permission
Date
Action
Array
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Collection
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Core
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Number
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Text
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Type
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
Xml
[ DIR ]
drwxr-xr-x
2016-01-20 09:00
AbstractMatcherTest.php
1.86
KB
-rw-r--r--
2016-01-20 09:00
BaseMatcherTest.php
535
B
-rw-r--r--
2016-01-20 09:00
FeatureMatcherTest.php
1.62
KB
-rw-r--r--
2016-01-20 09:00
MatcherAssertTest.php
7.17
KB
-rw-r--r--
2016-01-20 09:00
StringDescriptionTest.php
5.32
KB
-rw-r--r--
2016-01-20 09:00
UtilTest.php
2.55
KB
-rw-r--r--
2016-01-20 09:00
Save
Rename
<?php namespace Hamcrest; class UnknownType { } abstract class AbstractMatcherTest extends \PHPUnit_Framework_TestCase { const ARGUMENT_IGNORED = "ignored"; const ANY_NON_NULL_ARGUMENT = "notnull"; abstract protected function createMatcher(); public function assertMatches(\Hamcrest\Matcher $matcher, $arg, $message) { $this->assertTrue($matcher->matches($arg), $message); } public function assertDoesNotMatch(\Hamcrest\Matcher $matcher, $arg, $message) { $this->assertFalse($matcher->matches($arg), $message); } public function assertDescription($expected, \Hamcrest\Matcher $matcher) { $description = new \Hamcrest\StringDescription(); $description->appendDescriptionOf($matcher); $this->assertEquals($expected, (string) $description, 'Expected description'); } public function assertMismatchDescription($expected, \Hamcrest\Matcher $matcher, $arg) { $description = new \Hamcrest\StringDescription(); $this->assertFalse( $matcher->matches($arg), 'Precondtion: Matcher should not match item' ); $matcher->describeMismatch($arg, $description); $this->assertEquals( $expected, (string) $description, 'Expected mismatch description' ); } public function testIsNullSafe() { //Should not generate any notices $this->createMatcher()->matches(null); $this->createMatcher()->describeMismatch( null, new \Hamcrest\NullDescription() ); } public function testCopesWithUnknownTypes() { //Should not generate any notices $this->createMatcher()->matches(new UnknownType()); $this->createMatcher()->describeMismatch( new UnknownType(), new NullDescription() ); } }