PHP 클래스 ElggCoreUnitTest, Elgg

This class is to be extended by all Elgg unit tests. As such, any method here will be available to the tests.
상속: extends UnitTestCase
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Class constructor.
__destruct ( ) Class destructor.
assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean Will trigger a pass if the two entity parameters have the same "value" and same type. Otherwise a fail.
replaceSession ( ElggUser $user = null ) : ElggUser | null Replace the current user session

메소드 상세

__construct() 공개 메소드

A simple wrapper to call the parent constructor.
public __construct ( )

__destruct() 공개 메소드

The parent does not provide a destructor, so including an explicit one here.
public __destruct ( )

assertIdenticalEntities() 공개 메소드

Will trigger a pass if the two entity parameters have the same "value" and same type. Otherwise a fail.
public assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean
$first ElggEntity Entity to compare.
$second ElggEntity Entity to compare.
$message string Message to display.
리턴 boolean

replaceSession() 공개 메소드

Replace the current user session
public replaceSession ( ElggUser $user = null ) : ElggUser | null
$user ElggUser New user to login as (null to log out)
리턴 ElggUser | null Removed session user (or null)