EqualExpectation::test PHP Метод

test() публичный Метод

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
Результат boolean True if correct.
    public function test($compare)
    {
        return $this->value == $compare && $compare == $this->value;
    }

Usage Example

Пример #1
0
 /**
  *    Tests the expectation. True if it differs from the
  *    held value.
  *    @param mixed $compare        Comparison value.
  *    @return boolean              True if correct.
  *    @access public
  */
 function test($compare)
 {
     return !parent::test($compare);
 }
All Usage Examples Of EqualExpectation::test