- version 3.6
-
-
Save megawubs/5569925 to your computer and use it in GitHub Desktop.
- String
- Array primitive
- Array class attribute
- Variable primitive
- Variable class attribute
- Class structure
- File
- Xml
- Other
- assertRegExp
- assertNotRegExp
- assertStringMatchesFormat
- assertStringNotMatchesFormat
- assertStringStartsWith
- assertStringStartsNotWith
- assertStringEndsWith
- assertStringEndsNotWith
- assertArrayHasKey
- assertArrayNotHasKey
- assertContains
- assertNotContains
- assertContainsOnly
- assertNotContainsOnly
- assertCount
- assertNotCount
- assertSameSize
- assertNotSameSize
- assertAttributeContains
- assertAttributeNotContains
- assertAttributeContainsOnly
- assertAttributeNotContainsOnly
- assertAttributeCount
- assertAttributeNotCount
- assertTrue
- assertFalse
- assertNotNull
- assertNull
- assertSame
- assertNotSame
- assertEquals
- assertNotEquals
- assertEmpty
- assertNotEmpty
- assertGreaterThan
- assertGreaterThanOrEqual
- assertLessThan
- assertLessThanOrEqual
- assertInstanceOf
- assertNotInstanceOf
- assertInternalType
- assertNotInternalType
- assertAttributeSame
- assertAttributeNotSame
- assertAttributeEquals
- assertAttributeNotEquals
- assertAttributeEmpty
- assertAttributeNotEmpty
- assertAttributeGreaterThan
- assertAttributeGreaterThanOrEqual
- assertAttributeLessThan
- assertAttributeLessThanOrEqual
- assertAttributeInstanceOf
- assertAttributeNotInstanceOf
- assertAttributeInternalType
- assertAttributeNotInternalType
- assertClassHasAttribute
- assertClassNotHasAttribute
- assertClassHasStaticAttribute
- assertClassNotHasStaticAttribute
- assertObjectHasAttribute
- assertObjectNotHasAttribute
- assertFileEquals
- assertFileNotEquals
- assertStringEqualsFile
- assertStringNotEqualsFile
- assertFileExists
- assertFileNotExists
- assertXmlFileEqualsXmlFile
- assertXmlFileNotEqualsXmlFile
- assertXmlStringEqualsXmlFile
- assertXmlStringNotEqualsXmlFile
- assertXmlStringEqualsXmlString
- assertXmlStringNotEqualsXmlString
- assertEqualXMLStructure
- assertStringMatchesFormatFile
- assertStringNotMatchesFormatFile
- assertSelectCount
- assertSelectRegExp
- assertSelectEquals
- assertTag
- assertNotTag
- assertThat
Returns a mock object for the specified class.
- param: ...
- return: PHPUnit_Framework_MockObject_MockObject
PHPUnit_Framework_MockObject_MockObject getMock(string $originalClassName [, mixed $methods = array() [, array $arguments = array() [, string $mockClassName = '' [, bool $callOriginalConstructor = TRUE [, bool $callOriginalClone = TRUE [, bool $callAutoload = TRUE]]]]]])
$this->getMock(
$originalClassName,
$methods = array(),
array $arguments = array(),
$mockClassName = '',
$callOriginalConstructor = TRUE,
$callOriginalClone = TRUE,
$callAutoload = TRUE
);
Returns a mock object for the specified abstract class with all abstract methods of the class mocked. Concrete methods to mock can be specified with the last parameter.
- param: ...
- return: PHPUnit_Framework_MockObject_MockObject
PHPUnit_Framework_MockObject_MockObject getMockForAbstractClass(string $originalClassName [, array $arguments = array() [, string $mockClassName = '' [, bool $callOriginalConstructor = TRUE [, bool $callOriginalClone = TRUE [, bool $callAutoload = TRUE [, array $mockedMethods = array()]]]]]])
$this->getMockForAbstractClass(
$originalClassName,
array $arguments = array(),
$mockClassName = '',
$callOriginalConstructor = TRUE,
$callOriginalClone = TRUE,
$callAutoload = TRUE,
array $mockedMethods
);
Returns a mock object based on the given WSDL file.
- param: ...
- return: PHPUnit_Framework_MockObject_MockObject
PHPUnit_Framework_MockObject_MockObject getMockFromWsdl(string $wsdlFile [, string $originalClassName [, string $mockClassName = '' [, array $mockedMethods = array() [, bool $callOriginalConstructor = TRUE]]]])
$this->getMockFromWsdl(
$wsdlFile,
$originalClassName = '',
$mockClassName = '',
array $methods = array(),
$callOriginalConstructor = TRUE
);
Returns a builder object to create mock objects using a fluent interface.
- param: string
- return: PHPUnit_Framework_MockObject_MockBuilder
PHPUnit_Framework_MockObject_MockBuilder getMockBuilder(string $className)
$mock = $this->getMockBuilder($className)
->setMockClassName($name)
->setConstructorArgs(array())
->disableOriginalConstructor()
->disableOriginalClone()
->disableAutoload()
->setMethods(array()|NULL)
->getMock();
$mock = $this->getMockBuilder($className)
->setMockClassName($name)
->setConstructorArgs(array())
->disableOriginalConstructor()
->disableOriginalClone()
->disableAutoload()
->setMethods(array()|NULL)
->getMockForAbstractClass();
$mock->expects($this->matcher())
Returns a matcher that matches when the method it is evaluated for is executed zero or more times.
- return: PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount any()
Returns a matcher that matches when the method it is evaluated for is never executed.
- return: PHPUnit_Framework_MockObject_Matcher_InvokedCount
PHPUnit_Framework_MockObject_Matcher_InvokedCount never()
Returns a matcher that matches when the method it is evaluated for is executed at least once.
- return: PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce atLeastOnce()
Returns a matcher that matches when the method it is evaluated for is executed exactly once.
- return: PHPUnit_Framework_MockObject_Matcher_InvokedCount
PHPUnit_Framework_MockObject_Matcher_InvokedCount once()
Returns a matcher that matches when the method it is evaluated for is executed exactly once.
- param: int
- return: PHPUnit_Framework_MockObject_Matcher_InvokedCount
PHPUnit_Framework_MockObject_Matcher_InvokedCount exactly(int $count)
Returns a matcher that matches when the method it is evaluated for is invoked at the given $index.
- param: int
- return: PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex at(int $index)
$mock->with($this->constraint())
$mock->will($this->return())
Desc.
PHPUnit_Framework_MockObject_Stub_Return returnValue(mixed $value)
Desc.
PHPUnit_Framework_MockObject_Stub_ReturnValue MapreturnValueMap(array $valueMap)
PHPUnit_Framework_MockObject_Stub_ReturnArgument returnArgument(int $argumentIndex)
Desc.
PHPUnit_Framework_MockObject_Stub_ReturnCallback returnCallback(mixed $callback)
Returns the current object.
PHPUnit_Framework_MockObject_Stub_ReturnSelf returnSelf()
Desc.
PHPUnit_Framework_MockObject_Stub_Exception throwException(Exception $exception)
Desc.
PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls onConsecutiveCalls(mixed ... [, mixed ...])