PHPUnit_Framework_MockObject_Builder_Namespace
in
Interface for builders which can register builders with a given identification.
This interface relates to PHPUnit_Framework_MockObject_Builder_Identity.
Tags
Table of Contents
- lookupId() : PHPUnit_Framework_MockObject_Builder_Match
- Looks up the match builder with identification $id and returns it.
- registerId() : mixed
- Registers the match builder $builder with the identification $id. The builder can later be looked up using lookupId() to figure out if it has been invoked.
Methods
lookupId()
Looks up the match builder with identification $id and returns it.
public
lookupId(string $id) : PHPUnit_Framework_MockObject_Builder_Match
Parameters
- $id : string
-
The identifiction of the match builder.
Return values
PHPUnit_Framework_MockObject_Builder_Match —registerId()
Registers the match builder $builder with the identification $id. The builder can later be looked up using lookupId() to figure out if it has been invoked.
public
registerId(string $id, PHPUnit_Framework_MockObject_Builder_Match $builder) : mixed
Parameters
- $id : string
-
The identification of the match builder.
- $builder : PHPUnit_Framework_MockObject_Builder_Match
-
The builder which is being registered.