yaright.blogg.se

Phpunit api
Phpunit api





phpunit api

PHPUnit_Framework_MockObject_MockBuilder disableOriginalClone() disableAutoload() Suppresses the invocation of the original clone constructor. PHPUnit_Framework_MockObject_MockBuilder disableOriginalConstructor() disableOriginalClone() Suppresses the invocation of the original constructor. PHPUnit_Framework_MockObject_MockBuilder setMockClassName( string $name) disableOriginalConstructor() PHPUnit_Framework_MockObject_MockBuilder setConstructorArgs( array $args) setMockClassName() Specifies the arguments for the constructor. PHPUnit_Framework_MockObject_MockBuilder setMethods( mixed $methods) setConstructorArgs() The behavior of the other methods is not changed. Specify the methods that are to be replaced with a configurable test double. PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls onConsecutiveCalls( mixed.

phpunit api

PHPUnit_Framework_MockObject_Stub_Exception throwException( Exception $exception) onConsecutiveCalls() PHPUnit_Framework_MockObject_Stub_ReturnSelf returnSelf() throwException() PHPUnit_Framework_MockObject_Stub_ReturnCallback returnCallback( mixed $callback) returnSelf()

phpunit api

PHPUnit_Framework_MockObject_Stub_ReturnArgument returnArgument( int $argumentIndex) returnCallback() PHPUnit_Framework_MockObject_Stub_ReturnValue MapreturnValueMap( array $valueMap) returnArgument() PHPUnit_Framework_MockObject_Stub_Return returnValue( mixed $value) returnValueMap() PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex at( int $index)

  • return: PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex.
  • phpunit api

    Returns a matcher that matches when the method it is evaluated for is invoked at the given $index. PHPUnit_Framework_MockObject_Matcher_InvokedCount exactly( int $count) at() PHPUnit_Framework_MockObject_Matcher_InvokedCount once() exactly() Returns a matcher that matches when the method it is evaluated for is executed exactly once. PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce atLeastOnce() once() return: PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce.Returns a matcher that matches when the method it is evaluated for is executed at least once. PHPUnit_Framework_MockObject_Matcher_InvokedCount never() atLeastOnce() return: PHPUnit_Framework_MockObject_Matcher_InvokedCount.Returns a matcher that matches when the method it is evaluated for is never executed. PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount any() never() return: PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount.Returns a matcher that matches when the method it is evaluated for is executed zero or more times. PHPUnit_Framework_MockObject_MockBuilder getMockBuilder( string $className) return: PHPUnit_Framework_MockObject_MockBuilder.Returns a builder object to create mock objects using a fluent interface. PHPUnit_Framework_MockObject_MockObject getMockForAbstractClass( string $originalClassName ]]]]]) getMockBuilder() Concrete methods to mock can be specified with the last parameter. Returns a mock object for the specified abstract class with all abstract methods of the class mocked. PHPUnit_Framework_MockObject_MockObject getMock( string $originalClassName ]]]]]) getMockForAbstractClass() Returns a mock object for the specified class.







    Phpunit api