webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
hamcrest
/
hamcrest-php
/
hamcrest
/
Hamcrest
/
Core
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
AllOf.php
1.418KB
edt
ren
AnyOf.php
1.232KB
edt
ren
CombinableMatcher.php
1.739KB
edt
ren
DescribedAs.php
1.806KB
edt
ren
Every.php
1.307KB
edt
ren
HasToString.php
1.243KB
edt
ren
Is.php
1.323KB
edt
ren
IsAnything.php
0.854KB
edt
ren
IsCollectionContaining.php
2.105KB
edt
ren
IsEqual.php
0.815KB
edt
ren
IsIdentical.php
0.691KB
edt
ren
IsInstanceOf.php
1.664KB
edt
ren
IsNot.php
0.807KB
edt
ren
IsNull.php
0.953KB
edt
ren
IsSame.php
1.068KB
edt
ren
IsTypeOf.php
1.642KB
edt
ren
Set.php
2.352KB
edt
ren
ShortcutCombination.php
0.898KB
edt
ren
<?php namespace Hamcrest\Core; /* Copyright (c) 2010 hamcrest.org */ use Hamcrest\BaseMatcher; use Hamcrest\Description; /** * Tests if a value (class, object, or array) has a named property. * * For example: * <pre> * assertThat(array('a', 'b'), set('b')); * assertThat($foo, set('bar')); * assertThat('Server', notSet('defaultPort')); * </pre> * * @todo Replace $property with a matcher and iterate all property names. */ class Set extends BaseMatcher { private $_property; private $_not; public function __construct($property, $not = false) { $this->_property = $property; $this->_not = $not; } public function matches($item) { if ($item === null) { return false; } $property = $this->_property; if (is_array($item)) { $result = isset($item[$property]); } elseif (is_object($item)) { $result = isset($item->$property); } elseif (is_string($item)) { $result = isset($item::$$property); } else { throw new \InvalidArgumentException('Must pass an object, array, or class name'); } return $this->_not ? !$result : $result; } public function describeTo(Description $description) { $description->appendText($this->_not ? 'unset property ' : 'set property ')->appendText($this->_property); } public function describeMismatch($item, Description $description) { $value = ''; if (!$this->_not) { $description->appendText('was not set'); } else { $property = $this->_property; if (is_array($item)) { $value = $item[$property]; } elseif (is_object($item)) { $value = $item->$property; } elseif (is_string($item)) { $value = $item::$$property; } parent::describeMismatch($value, $description); } } /** * Matches if value (class, object, or array) has named $property. * * @factory */ public static function set($property) { return new self($property); } /** * Matches if value (class, object, or array) does not have named $property. * * @factory */ public static function notSet($property) { return new self($property, true); } }