Static Public Member Functions

Assert Class Reference
[Widely used base classes and interfaces]

Widely used assertions. More...

Inheritance diagram for Assert:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static isTrue ($boolean, $message=null)
static isFalse ($boolean, $message=null)
static isNotFalse ($boolean, $message=null)
static isNull ($variable, $message=null)
static isEmpty ($variable, $message=null)
static isNotEmpty ($variable, $message=null)
static isIndexExists ($array, $key, $message=null)
static isNotNull ($variable, $message=null)
static isScalar ($variable, $message=null)
static isArray ($variable, $message=null)
static isNotEmptyArray (&$variable, $message=null)
static isInteger ($variable, $message=null)
static isPositiveInteger ($variable, $message=null)
static isFloat ($variable, $message=null)
static isString ($variable, $message=null)
static isBoolean ($variable, $message=null)
static isTernaryBase ($variable, $message=null)
static brothers ($first, $second, $message=null)
static isEqual ($first, $second, $message=null)
static isNotEqual ($first, $second, $message=null)
static isSame ($first, $second, $message=null)
static isNotSame ($first, $second, $message=null)
static isTypelessEqual ($first, $second, $message=null)
static isLesser ($first, $second, $message=null)
static isGreater ($first, $second, $message=null)
static isLesserOrEqual ($first, $second, $message=null)
static isGreaterOrEqual ($first, $second, $message=null)
static isInstance ($first, $second, $message=null)
static classExists ($className, $message=null)
static methodExists ($object, $method, $message=null)
static isUnreachable ($message= 'unreachable code reached')

static checkInteger ($value)
 exceptionless methods
static checkFloat ($value)
static checkScalar ($value)
static dumpArgument ($argument)
static dumpOppositeArguments ($first, $second)

Detailed Description

Widely used assertions.

Definition at line 17 of file Assert.class.php.


Member Function Documentation

static Assert::brothers ( first,
second,
message = null 
) [static]
static Assert::checkFloat ( value  )  [static]

Definition at line 291 of file Assert.class.php.

Referenced by Memcached::store().

static Assert::checkInteger ( value  )  [static]
static Assert::checkScalar ( value  )  [static]

Definition at line 299 of file Assert.class.php.

Referenced by PrimitiveIdentifierList::import().

static Assert::classExists ( className,
message = null 
) [static]
static Assert::dumpArgument ( argument  )  [static]
static Assert::dumpOppositeArguments ( first,
second 
) [static]

Definition at line 309 of file Assert.class.php.

static Assert::isArray ( variable,
message = null 
) [static]
static Assert::isBoolean ( variable,
message = null 
) [static]
static Assert::isEmpty ( variable,
message = null 
) [static]

Definition at line 51 of file Assert.class.php.

static Assert::isEqual ( first,
second,
message = null 
) [static]
static Assert::isFalse ( boolean,
message = null 
) [static]
static Assert::isFloat ( variable,
message = null 
) [static]
static Assert::isGreater ( first,
second,
message = null 
) [static]

Definition at line 227 of file Assert.class.php.

Referenced by SortHelper::sort().

static Assert::isGreaterOrEqual ( first,
second,
message = null 
) [static]

Definition at line 243 of file Assert.class.php.

Referenced by SimpleAggregateCache::guessLabel().

static Assert::isIndexExists ( array,
key,
message = null 
) [static]
static Assert::isInstance ( first,
second,
message = null 
) [static]
static Assert::isInteger ( variable,
message = null 
) [static]
static Assert::isLesser ( first,
second,
message = null 
) [static]

Definition at line 219 of file Assert.class.php.

static Assert::isLesserOrEqual ( first,
second,
message = null 
) [static]

Definition at line 235 of file Assert.class.php.

static Assert::isNotEmpty ( variable,
message = null 
) [static]

Definition at line 59 of file Assert.class.php.

Referenced by GenericDAO::getById().

static Assert::isNotEmptyArray ( &$  variable,
message = null 
) [static]
static Assert::isNotEqual ( first,
second,
message = null 
) [static]

Definition at line 187 of file Assert.class.php.

static Assert::isNotFalse ( boolean,
message = null 
) [static]

Definition at line 35 of file Assert.class.php.

Referenced by FileOutputStream::__construct().

static Assert::isNotNull ( variable,
message = null 
) [static]
static Assert::isNotSame ( first,
second,
message = null 
) [static]

Definition at line 203 of file Assert.class.php.

static Assert::isNull ( variable,
message = null 
) [static]
static Assert::isPositiveInteger ( variable,
message = null 
) [static]
static Assert::isSame ( first,
second,
message = null 
) [static]

Definition at line 195 of file Assert.class.php.

Referenced by GenericDAO::checkObjectType().

static Assert::isScalar ( variable,
message = null 
) [static]
static Assert::isString ( variable,
message = null 
) [static]
static Assert::isTernaryBase ( variable,
message = null 
) [static]
static Assert::isTrue ( boolean,
message = null 
) [static]

Definition at line 19 of file Assert.class.php.

Referenced by Color::__construct(), FileRandomSource::__construct(), HtmlAssembler::__construct(), DirectoryMutator::__construct(), ClassProjection::__construct(), Criteria::__construct(), ExtractPart::__construct(), InExpression::__construct(), DBTable::addUniques(), OpenIdConsumer::associate(), HtmlTokenizer::attrNameState(), HtmlTokenizer::attrValueState(), LogicalChain::block(), VoodooDaoWorker::cacheListByQuery(), SmartDaoWorker::cacheListByQuery(), CacheDaoWorker::cacheListByQuery(), PrototypedSoapClient::call(), MetaConfiguration::checkClassSanity(), LiteDialect::checkColumn(), MetaConfiguration::checkRecursion(), MetaConfiguration::checkSanity(), ClassUtils::checkStaticMethod(), DateRange::checkType(), PrimitiveDateRange::checkType(), PrimitiveDate::checkType(), DateRange::clip(), PrototypedBuilder::cloneBuilder(), SortHelper::compare(), Socket::connect(), ClassUtils::copyNotNullProperties(), OpenIdConsumer::doContinue(), HtmlTokenizer::doctypeTagState(), DaoMoveHelper::down(), HtmlTokenizer::endTagState(), HtmlTokenizer::externalTagState(), Criteria::fetchCollection(), ProtoDAO::fetchCollections(), PropertyPath::fetchHelpers(), ClassUtils::fillNullProperties(), FormUtils::form2object(), AbstractProtoClass::forwardPrimitive(), CodeGenerator::generateOneSymbol(), PlainForm::getActualChoiceValue(), PlainForm::getChoiceValue(), MimeMail::getEncodedBody(), MimeMail::getHeaders(), Singleton::getInstance(), ArrayUtils::getMirrorValues(), GoogleChartDataSet::getStepSize(), PgSQL::getTableInfo(), MySQL::getTableInfo(), PrimitiveTime::importValue(), PrimitiveHstore::importValue(), PrimitiveForm::importValue(), HtmlTokenizer::insideTagState(), LightMetaProperty::isBuildable(), DateRange::isNeighbour(), MetaConfiguration::load(), MimePart::loadBodyFromFile(), GmpBigInteger::make(), DirectoryToObjectBinder::make(), OpenIdConsumer::makeCheckIdRequest(), Date::makeFromWeek(), MetaConfiguration::makeProperty(), GmpBigIntegerFactory::makeRandom(), FormUtils::object2form(), PrimitiveDateRange::of(), PrimitiveClass::of(), PlainList::offsetSet(), IndexedList::offsetSet(), MetaConfiguration::processClasses(), MetaConfiguration::processIncludes(), ProtoDAO::processPath(), Sequenceless::query(), SimplePhpView::render(), CommandChain::run(), CarefulDatabaseRunner::run(), ScopeSetter::set(), DTOSetter::set(), UnifiedContainer::setCriteria(), InetType::setDefault(), PrimitiveTime::setDefault(), PrimitiveMultiList::setDefault(), PrimitiveList::setDefault(), Time::setHour(), GoogleChartAxis::setInterval(), PrimitiveTime::setMax(), PrimitiveIdentifier::setMethodName(), PrimitiveTime::setMin(), Time::setMinute(), DataType::setPrecision(), DBColumn::setReference(), DataType::setScale(), Time::setSecond(), DataType::setSize(), DataType::setTimezoned(), DataType::setUnsigned(), PrimitiveTime::setValue(), PrimitiveRange::setValue(), PrimitiveForm::setValue(), IdentifiablePrimitive::setValue(), ModelAndView::setView(), DaoUtils::swap(), OneToManyLinkedLazy::sync(), ManyToManyLinkedLazy::sync(), TruncateQuery::toDialectString(), SQLFunction::toDialectString(), QuerySkeleton::toDialectStringField(), SQLChain::toMapped(), DaoMoveHelper::up(), TidyValidator::validateContent(), PartViewer::view(), and HtmlTokenizer::waitingEqualSignState().

static Assert::isTypelessEqual ( first,
second,
message = null 
) [static]

Definition at line 211 of file Assert.class.php.

Referenced by StorableDAO::unite().

static Assert::isUnreachable ( message = 'unreachable code reached'  )  [static]
static Assert::methodExists ( object,
method,
message = null 
) [static]

Definition at line 267 of file Assert.class.php.

Referenced by CustomizableDaoSynchronizer::delete(), and DaoIterator::key().


The documentation for this class was generated from the following file: