AnythingExpectation

A wildcard expectation always matches.

Defined (1)

The class is defined in the following location(s).

/wpsc-components/merchant-core-v3/gateways/php-merchant/tests/simpletest/expectation.php  
  1. class AnythingExpectation extends SimpleExpectation { 
  2.  
  3. /** 
  4. * Tests the expectation. Always true. 
  5. * @param mixed $compare Ignored. 
  6. * @return boolean True. 
  7. * @access public 
  8. */ 
  9. function test($compare) { 
  10. return true; 
  11.  
  12. /** 
  13. * Returns a human readable test message. 
  14. * @param mixed $compare Comparison value. 
  15. * @return string Description of success 
  16. * or failure. 
  17. * @access public 
  18. */ 
  19. function testMessage($compare) { 
  20. $dumper = $this->getDumper(); 
  21. return 'Anything always matches [' . $dumper->describeValue($compare) . ']';