/** * (non-PHPdoc) * * @see CIUnit_Framework_ComparatorAbstract::assertEquals() */ public function assertEquals($expected, $actual, $delta = 0, $canonicalize = FALSE, $ignoreCase = FALSE, array &$processedObjects = array()) { if (gettype($expected) != gettype($actual)) { $message = sprintf('%s does not match expected type "%s".', CIUnit_Util_Type::shortExport($actual), gettype($expected)); throw new CIUnit_Framework_Exception_ComparissonFailure($expected, $actual, '', '', $message); } }
/** * (non-PHPdoc) * @see CIUnit_Framework_ConstraintAbstract::failureDescription() */ protected function failureDescription($evaluated) { return CIUnit_Util_Type::shortExport($evaluated) . ' ' . $this->toString(); }
/** * (non-PHPdoc) * * @see CIUnit_Framework_ConstraintAbstract::failureDescription() */ public function failureDescription($evaluated) { return sprintf('%s is equal to %s', CIUnit_Util_Type::shortExport($evaluated), CIUnit_Util_Type::shortExport($this->expected)); }
/** * (non-PHPdoc) * * @see CIUnit_Framework_ConstraintAbstract::failureDescription() */ public function failureDescription($evaluated) { return sprintf('%s is an instance of %s', CIUnit_Util_Type::shortExport($evaluated), $this->class); }