测试用例详解(5)

发表于:2014-08-01来源:uml.org.cn作者:nonultimate点击数: 标签:测试用例
assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = , $delta = 0, $maxDepth = 10, $canonicalizeEol = FALSE) assertAttributeGreaterThan($expected, $actualAttributeNa

  assertAttributeEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalizeEol = FALSE)

  assertAttributeGreaterThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertAttributeLessThan($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '')

  assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '')

  assertAttributeNotEquals($expected, $actualAttributeName, $actualClassOrObject, $message = '', $delta = 0, $maxDepth = 10, $canonicalizeEol = FALSE)

  assertAttributeNotSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertAttributeSame($expected, $actualAttributeName, $actualClassOrObject, $message = '')

  assertClassHasAttribute($attributeName, $className, $message = '')

  assertClassHasStaticAttribute($attributeName, $className, $message = '')

  assertClassNotHasAttribute($attributeName, $className, $message = '')

  assertClassNotHasStaticAttribute($attributeName, $className, $message = '')

  assertContains($needle, $haystack, $message = '')

  assertContainsOnly($type, $haystack, $isNativeType = NULL, $message = '')

  assertEqualXMLStructure(DOMNode $expectedNode, DOMNode $actualNode, $checkAttributes = FALSE, $message = '')

  assertEquals($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalizeEol = FALSE)

  assertFalse($condition, $message = '')

  assertFileEquals($expected, $actual, $message = '', $canonicalizeEol = FALSE)

  PHPUnit官方文档

  http://www.phpunit.de/manual/3.3/en/index.html

原文转自:http://www.uml.org.cn/Test/200910169.asp