*/ /** * Base for all layout constraints * */ abstract class EcomDev_PHPUnit_Constraint_AbstractLayout extends EcomDev_PHPUnit_AbstractConstraint { /** * Custom failure description for showing layout related errors * (non-PHPdoc) * @see PHPUnit_Framework_Constraint::customFailureDescription() */ protected function customFailureDescription($other) { return sprintf( 'layout %s.', $this->toString() ); } /** * For layout, actual value should be always set * (non-PHPdoc) * @see EcomDev_PHPUnit_ConstraintAbstract::getActualValue() */ protected function getActualValue($other = null) { if ($this->_useActualValue) { return parent::getActualValue($other); } return ''; } }