Mockery
Interfaces, Classes and Traits
- ExpectationInterface
- Generator
- Pass
- TargetClassInterface
- LegacyMockInterface
- Loader
- ArgumentListMatcher
- MockInterface
- MockeryTestCase
- TestListener
- TestListenerTrait
- CompositeExpectation
- Configuration
- Container
- AtLeast
- AtMost
- CountValidatorAbstract
- Exact
- Exception
- InvalidArgumentException
- InvalidCountException
- InvalidOrderException
- NoMatchingExpectationException
- RuntimeException
- Exception
- Expectation
- ExpectationDirector
- ExpectsHigherOrderMessage
- CachingGenerator
- DefinedTargetClass
- Method
- MockConfiguration
- This class describes the configuration of mocks and hides away some of the reflection implementation
- MockConfigurationBuilder
- MockDefinition
- MockNameBuilder
- Parameter
- AvoidMethodClashPass
- CallTypeHintPass
- ClassNamePass
- ClassPass
- InstanceMockPass
- InterfacePass
- MagicMethodTypeHintsPass
- MethodDefinitionPass
- RemoveBuiltinMethodsThatAreFinalPass
- The standard Mockery\Mock class includes some methods to ease mocking, such as __wakeup, however if the target has a final __wakeup method, it can't be mocked. This pass removes the builtin methods where they are final on the target
- RemoveDestructorPass
- Remove mock's empty destructor if we tend to use original class destructor
- RemoveUnserializeForInternalSerializableClassesPass
- Internal classes can not be instantiated with the newInstanceWithoutArgs reflection method, so need the serialization hack. If the class also implements Serializable, we need to replace the standard unserialize method definition with a dummy
- TraitPass
- StringManipulationGenerator
- UndefinedTargetClass
- HigherOrderMessage
- EvalLoader
- RequireLoader
- AndAnyOtherArgs
- Any
- AnyArgs
- AnyOf
- Closure
- Contains
- Ducktype
- HasKey
- HasValue
- MatcherAbstract
- MultiArgumentClosure
- MustBe
- NoArgs
- Not
- NotAnyOf
- Pattern
- PHPUnitConstraint
- Subset
- Type
- MethodCall
- Mock
- QuickDefinitionsConfiguration
- ReceivedMethodCalls
- Undefined
- VerificationDirector
- VerificationExpectation
- Mockery
- MockeryPHPUnitIntegration
- Integrates Mockery into PHPUnit. Ensures Mockery expectations are verified for each test and are included by the assertion counter.