\PHPUnit_Framework_Assert
A set of assert methods.
- Author: Sebastian Bergmann <sebastian@phpunit.de>
- Copyright: 2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
- License: http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
Synopsis
- // members
- private integer $count;
- // methods
- public static void assertArrayHasKey()
- public static void assertArraySubset()
- public static void assertArrayNotHasKey()
- public static void assertContains()
- public static void assertAttributeContains()
- public static void assertNotContains()
- public static void assertAttributeNotContains()
- public static void assertContainsOnly()
- public static void assertContainsOnlyInstancesOf()
- public static void assertAttributeContainsOnly()
- public static void assertNotContainsOnly()
- public static void assertAttributeNotContainsOnly()
- public static void assertCount()
- public static void assertAttributeCount()
- public static void assertNotCount()
- public static void assertAttributeNotCount()
- public static void assertEquals()
- public static void assertAttributeEquals()
- public static void assertNotEquals()
- public static void assertAttributeNotEquals()
- public static void assertEmpty()
- public static void assertAttributeEmpty()
- public static void assertNotEmpty()
- public static void assertAttributeNotEmpty()
- public static void assertGreaterThan()
- public static void assertAttributeGreaterThan()
- public static void assertGreaterThanOrEqual()
- public static void assertAttributeGreaterThanOrEqual()
- public static void assertLessThan()
- public static void assertAttributeLessThan()
- public static void assertLessThanOrEqual()
- public static void assertAttributeLessThanOrEqual()
- public static void assertFileEquals()
- public static void assertFileNotEquals()
- public static void assertStringEqualsFile()
- public static void assertStringNotEqualsFile()
- public static void assertFileExists()
- public static void assertFileNotExists()
- public static void assertTrue()
- public static void assertNotTrue()
- public static void assertFalse()
- public static void assertNotFalse()
- public static void assertNotNull()
- public static void assertNull()
- public static void assertClassHasAttribute()
- public static void assertClassNotHasAttribute()
- public static void assertClassHasStaticAttribute()
- public static void assertClassNotHasStaticAttribute()
- public static void assertObjectHasAttribute()
- public static void assertObjectNotHasAttribute()
- public static void assertSame()
- public static void assertAttributeSame()
- public static void assertNotSame()
- public static void assertAttributeNotSame()
- public static void assertInstanceOf()
- public static void assertAttributeInstanceOf()
- public static void assertNotInstanceOf()
- public static void assertAttributeNotInstanceOf()
- public static void assertInternalType()
- public static void assertAttributeInternalType()
- public static void assertNotInternalType()
- public static void assertAttributeNotInternalType()
- public static void assertRegExp()
- public static void assertNotRegExp()
- public static void assertSameSize()
- public static void assertNotSameSize()
- public static void assertStringMatchesFormat()
- public static void assertStringNotMatchesFormat()
- public static void assertStringMatchesFormatFile()
- public static void assertStringNotMatchesFormatFile()
- public static void assertStringStartsWith()
- public static void assertStringStartsNotWith()
- public static void assertStringEndsWith()
- public static void assertStringEndsNotWith()
- public static void assertXmlFileEqualsXmlFile()
- public static void assertXmlFileNotEqualsXmlFile()
- public static void assertXmlStringEqualsXmlFile()
- public static void assertXmlStringNotEqualsXmlFile()
- public static void assertXmlStringEqualsXmlString()
- public static void assertXmlStringNotEqualsXmlString()
- public static void assertEqualXMLStructure()
- public static void assertSelectCount()
- public static void assertSelectRegExp()
- public static void assertSelectEquals()
- public static void assertTag()
- public static void assertNotTag()
- public static void assertThat()
- public static void assertJson()
- public static void assertJsonStringEqualsJsonString()
- public static void assertJsonStringNotEqualsJsonString()
- public static void assertJsonStringEqualsJsonFile()
- public static void assertJsonStringNotEqualsJsonFile()
- public static void assertJsonFileNotEqualsJsonFile()
- public static void assertJsonFileEqualsJsonFile()
- public static PHPUnit_Framework_Constraint_And logicalAnd()
- public static PHPUnit_Framework_Constraint_Or logicalOr()
- public static PHPUnit_Framework_Constraint_Not logicalNot()
- public static PHPUnit_Framework_Constraint_Xor logicalXor()
- public static PHPUnit_Framework_Constraint_IsAnything anything()
- public static PHPUnit_Framework_Constraint_IsTrue isTrue()
- public static PHPUnit_Framework_Constraint_Callback callback()
- public static PHPUnit_Framework_Constraint_IsFalse isFalse()
- public static PHPUnit_Framework_Constraint_IsJson isJson()
- public static PHPUnit_Framework_Constraint_IsNull isNull()
- public static PHPUnit_Framework_Constraint_Attribute attribute()
- public static PHPUnit_Framework_Constraint_TraversableContains contains()
- public static PHPUnit_Framework_Constraint_TraversableContainsOnly containsOnly()
- public static PHPUnit_Framework_Constraint_TraversableContainsOnly containsOnlyInstancesOf()
- public static PHPUnit_Framework_Constraint_ArrayHasKey arrayHasKey()
- public static PHPUnit_Framework_Constraint_IsEqual equalTo()
- public static PHPUnit_Framework_Constraint_Attribute attributeEqualTo()
- public static PHPUnit_Framework_Constraint_IsEmpty isEmpty()
- public static PHPUnit_Framework_Constraint_FileExists fileExists()
- public static PHPUnit_Framework_Constraint_GreaterThan greaterThan()
- public static PHPUnit_Framework_Constraint_Or greaterThanOrEqual()
- public static PHPUnit_Framework_Constraint_ClassHasAttribute classHasAttribute()
- public static PHPUnit_Framework_Constraint_ClassHasStaticAttribute classHasStaticAttribute()
- public static PHPUnit_Framework_Constraint_ObjectHasAttribute objectHasAttribute()
- public static PHPUnit_Framework_Constraint_IsIdentical identicalTo()
- public static PHPUnit_Framework_Constraint_IsInstanceOf isInstanceOf()
- public static PHPUnit_Framework_Constraint_IsType isType()
- public static PHPUnit_Framework_Constraint_LessThan lessThan()
- public static PHPUnit_Framework_Constraint_Or lessThanOrEqual()
- public static PHPUnit_Framework_Constraint_PCREMatch matchesRegularExpression()
- public static PHPUnit_Framework_Constraint_StringMatches matches()
- public static PHPUnit_Framework_Constraint_StringStartsWith stringStartsWith()
- public static PHPUnit_Framework_Constraint_StringContains stringContains()
- public static PHPUnit_Framework_Constraint_StringEndsWith stringEndsWith()
- public static PHPUnit_Framework_Constraint_Count countOf()
- public static void fail()
- public static mixed readAttribute()
- public static mixed getStaticAttribute()
- public static mixed getObjectAttribute()
- public static void markTestIncomplete()
- public static void markTestSkipped()
- public static integer getCount()
- public static void resetCount()
Hierarchy
Extended by
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
1862 - 1924 | NPathComplexity | The method assertEqualXMLStructure() has an NPath complexity of 360. The configured NPath complexity threshold is 200. |
2009 - 2057 | CyclomaticComplexity | The method assertSelectEquals() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10. |
2992 - 3038 | CyclomaticComplexity | The method getObjectAttribute() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
106 | 20 | error | Only one argument is allowed per line in a multi-line function call |
112 | 20 | error | Only one argument is allowed per line in a multi-line function call |
163 | 166 | warning | Line exceeds 120 characters; contains 165 characters |
200 | 212 | warning | Line exceeds 120 characters; contains 211 characters |
223 | 169 | warning | Line exceeds 120 characters; contains 168 characters |
264 | 215 | warning | Line exceeds 120 characters; contains 214 characters |
347 | 147 | warning | Line exceeds 120 characters; contains 146 characters |
404 | 150 | warning | Line exceeds 120 characters; contains 149 characters |
450 | 127 | warning | Line exceeds 120 characters; contains 126 characters |
495 | 130 | warning | Line exceeds 120 characters; contains 129 characters |
515 | 149 | warning | Line exceeds 120 characters; contains 148 characters |
540 | 193 | warning | Line exceeds 120 characters; contains 192 characters |
565 | 152 | warning | Line exceeds 120 characters; contains 151 characters |
592 | 196 | warning | Line exceeds 120 characters; contains 195 characters |
685 | 124 | warning | Line exceeds 120 characters; contains 123 characters |
720 | 131 | warning | Line exceeds 120 characters; contains 130 characters |
782 | 128 | warning | Line exceeds 120 characters; contains 127 characters |
802 | 123 | warning | Line exceeds 120 characters; contains 122 characters |
829 | 126 | warning | Line exceeds 120 characters; contains 125 characters |
856 | 139 | warning | Line exceeds 120 characters; contains 138 characters |
882 | 142 | warning | Line exceeds 120 characters; contains 141 characters |
1862 | 148 | warning | Line exceeds 120 characters; contains 147 characters |
2025 | 9 | error | Expected "} elseif (...) {\n"; found "} // assert any elements exist if true, assert no elements exist if false\n elseif (...) {\n" |
2034 | 9 | error | Expected "} elseif (...) {\n"; found "} // check for range number of elements\n elseif (...) {\n" |
2559 | 130 | warning | Line exceeds 120 characters; contains 129 characters |
2635 | 142 | warning | Line exceeds 120 characters; contains 141 characters |
Members
private
- $count — integer
Methods
public
- anything() — Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
- arrayHasKey() — Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
- assertArrayHasKey() — Asserts that an array has a specified key.
- assertArrayNotHasKey() — Asserts that an array does not have a specified key.
- assertArraySubset() — Asserts that an array has a specified subset.
- assertAttributeContains() — Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
- assertAttributeContainsOnly() — Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.
- assertAttributeCount() — Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
- assertAttributeEmpty() — Asserts that a static attribute of a class or an attribute of an object is empty.
- assertAttributeEquals() — Asserts that a variable is equal to an attribute of an object.
- assertAttributeGreaterThan() — Asserts that an attribute is greater than another value.
- assertAttributeGreaterThanOrEqual() — Asserts that an attribute is greater than or equal to another value.
- assertAttributeInstanceOf() — Asserts that an attribute is of a given type.
- assertAttributeInternalType() — Asserts that an attribute is of a given type.
- assertAttributeLessThan() — Asserts that an attribute is smaller than another value.
- assertAttributeLessThanOrEqual() — Asserts that an attribute is smaller than or equal to another value.
- assertAttributeNotContains() — Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.
- assertAttributeNotContainsOnly() — Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain only values of a given type.
- assertAttributeNotCount() — Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
- assertAttributeNotEmpty() — Asserts that a static attribute of a class or an attribute of an object is not empty.
- assertAttributeNotEquals() — Asserts that a variable is not equal to an attribute of an object.
- assertAttributeNotInstanceOf() — Asserts that an attribute is of a given type.
- assertAttributeNotInternalType() — Asserts that an attribute is of a given type.
- assertAttributeNotSame() — Asserts that a variable and an attribute of an object do not have the same type and value.
- assertAttributeSame() — Asserts that a variable and an attribute of an object have the same type and value.
- assertClassHasAttribute() — Asserts that a class has a specified attribute.
- assertClassHasStaticAttribute() — Asserts that a class has a specified static attribute.
- assertClassNotHasAttribute() — Asserts that a class does not have a specified attribute.
- assertClassNotHasStaticAttribute() — Asserts that a class does not have a specified static attribute.
- assertContains() — Asserts that a haystack contains a needle.
- assertContainsOnly() — Asserts that a haystack contains only values of a given type.
- assertContainsOnlyInstancesOf() — Asserts that a haystack contains only instances of a given classname
- assertCount() — Asserts the number of elements of an array, Countable or Traversable.
- assertEmpty() — Asserts that a variable is empty.
- assertEqualXMLStructure() — Asserts that a hierarchy of DOMElements matches.
- assertEquals() — Asserts that two variables are equal.
- assertFalse() — Asserts that a condition is false.
- assertFileEquals() — Asserts that the contents of one file is equal to the contents of another file.
- assertFileExists() — Asserts that a file exists.
- assertFileNotEquals() — Asserts that the contents of one file is not equal to the contents of another file.
- assertFileNotExists() — Asserts that a file does not exist.
- assertGreaterThan() — Asserts that a value is greater than another value.
- assertGreaterThanOrEqual() — Asserts that a value is greater than or equal to another value.
- assertInstanceOf() — Asserts that a variable is of a given type.
- assertInternalType() — Asserts that a variable is of a given type.
- assertJson() — Asserts that a string is a valid JSON string.
- assertJsonFileEqualsJsonFile() — Asserts that two JSON files are equal.
- assertJsonFileNotEqualsJsonFile() — Asserts that two JSON files are not equal.
- assertJsonStringEqualsJsonFile() — Asserts that the generated JSON encoded object and the content of the given file are equal.
- assertJsonStringEqualsJsonString() — Asserts that two given JSON encoded objects or arrays are equal.
- assertJsonStringNotEqualsJsonFile() — Asserts that the generated JSON encoded object and the content of the given file are not equal.
- assertJsonStringNotEqualsJsonString() — Asserts that two given JSON encoded objects or arrays are not equal.
- assertLessThan() — Asserts that a value is smaller than another value.
- assertLessThanOrEqual() — Asserts that a value is smaller than or equal to another value.
- assertNotContains() — Asserts that a haystack does not contain a needle.
- assertNotContainsOnly() — Asserts that a haystack does not contain only values of a given type.
- assertNotCount() — Asserts the number of elements of an array, Countable or Traversable.
- assertNotEmpty() — Asserts that a variable is not empty.
- assertNotEquals() — Asserts that two variables are not equal.
- assertNotFalse() — Asserts that a condition is not false.
- assertNotInstanceOf() — Asserts that a variable is not of a given type.
- assertNotInternalType() — Asserts that a variable is not of a given type.
- assertNotNull() — Asserts that a variable is not null.
- assertNotRegExp() — Asserts that a string does not match a given regular expression.
- assertNotSame() — Asserts that two variables do not have the same type and value.
- assertNotSameSize() — Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
- assertNotTag() — This assertion is the exact opposite of assertTag().
- assertNotTrue() — Asserts that a condition is not true.
- assertNull() — Asserts that a variable is null.
- assertObjectHasAttribute() — Asserts that an object has a specified attribute.
- assertObjectNotHasAttribute() — Asserts that an object does not have a specified attribute.
- assertRegExp() — Asserts that a string matches a given regular expression.
- assertSame() — Asserts that two variables have the same type and value.
- assertSameSize() — Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
- assertSelectCount() — Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.
- assertSelectEquals() — assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
- assertSelectRegExp() — assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml); // 3?
- assertStringEndsNotWith() — Asserts that a string ends not with a given suffix.
- assertStringEndsWith() — Asserts that a string ends with a given suffix.
- assertStringEqualsFile() — Asserts that the contents of a string is equal to the contents of a file.
- assertStringMatchesFormat() — Asserts that a string matches a given format string.
- assertStringMatchesFormatFile() — Asserts that a string matches a given format file.
- assertStringNotEqualsFile() — Asserts that the contents of a string is not equal to the contents of a file.
- assertStringNotMatchesFormat() — Asserts that a string does not match a given format string.
- assertStringNotMatchesFormatFile() — Asserts that a string does not match a given format string.
- assertStringStartsNotWith() — Asserts that a string starts not with a given prefix.
- assertStringStartsWith() — Asserts that a string starts with a given prefix.
- assertTag() — Evaluate an HTML or XML string and assert its structure and/or contents.
- assertThat() — Evaluates a PHPUnit_Framework_Constraint matcher object.
- assertTrue() — Asserts that a condition is true.
- assertXmlFileEqualsXmlFile() — Asserts that two XML files are equal.
- assertXmlFileNotEqualsXmlFile() — Asserts that two XML files are not equal.
- assertXmlStringEqualsXmlFile() — Asserts that two XML documents are equal.
- assertXmlStringEqualsXmlString() — Asserts that two XML documents are equal.
- assertXmlStringNotEqualsXmlFile() — Asserts that two XML documents are not equal.
- assertXmlStringNotEqualsXmlString() — Asserts that two XML documents are not equal.
- attribute() — Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
- attributeEqualTo() — Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
- callback() — Returns a PHPUnit_Framework_Constraint_Callback matcher object.
- classHasAttribute() — Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
- classHasStaticAttribute() — Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
- contains() — Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
- containsOnly() — Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
- containsOnlyInstancesOf() — Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
- countOf() — Returns a PHPUnit_Framework_Constraint_Count matcher object.
- equalTo() — Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
- fail() — Fails a test with the given message.
- fileExists() — Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
- getCount() — Return the current assertion count.
- getObjectAttribute() — Returns the value of an object's attribute.
- getStaticAttribute() — Returns the value of a static attribute.
- greaterThan() — Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
- greaterThanOrEqual() — Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
- identicalTo() — Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
- isEmpty() — Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
- isFalse() — Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
- isInstanceOf() — Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
- isJson() — Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
- isNull() — Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
- isTrue() — Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
- isType() — Returns a PHPUnit_Framework_Constraint_IsType matcher object.
- lessThan() — Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
- lessThanOrEqual() — Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
- logicalAnd() — Returns a PHPUnit_Framework_Constraint_And matcher object.
- logicalNot() — Returns a PHPUnit_Framework_Constraint_Not matcher object.
- logicalOr() — Returns a PHPUnit_Framework_Constraint_Or matcher object.
- logicalXor() — Returns a PHPUnit_Framework_Constraint_Xor matcher object.
- markTestIncomplete() — Mark the test as incomplete.
- markTestSkipped() — Mark the test as skipped.
- matches() — Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
- matchesRegularExpression() — Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
- objectHasAttribute() — Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
- readAttribute() — Returns the value of an attribute of a class or an object.
- resetCount() — Reset the assertion counter.
- stringContains() — Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
- stringEndsWith() — Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
- stringStartsWith() — Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
History
-
2014-08-17T10:30:30+02:00 (commit #91ba275)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
phpcbf --standard=PSR2 src tests
-
2014-08-17T10:18:07+02:00 (commit #fd5ef8a)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
phpcbf --standard=PSR2 src tests
-
2014-08-12T08:06:36+02:00 (commit #f7e41bd)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
rename assertArrayPart to assertArraySubset, as discussed in #1371 bump `@since` tag from 4.3.0 to 4.4.0, as defined in https://github.com/sebastianbergmann/phpunit/pull/1377#discussion_r15846100
-
2014-08-12T08:06:36+02:00 (commit #1db0f13)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
add strict switch to assertArrayPart
-
2014-08-12T08:06:36+02:00 (commit #b1b195d)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
fix docs for assertArrayPart and ArrayPart constraint fix code style
-
2014-08-12T08:06:36+02:00 (commit #5af78e9)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
pass tests for assertArrayPart, throw exceptions for invalid arguments
-
2014-08-12T08:06:36+02:00 (commit #0679ccc)
Author: Márcio Almada (marcio3w@gmail.com) / Commiter: Márcio Almada (marcio3w@gmail.com)
add implementation for assartArrayPart
-
2014-08-12T07:25:32+02:00 (commit #55caa21)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix CS/WS issues
-
2014-08-12T06:43:31+02:00 (commit #50dfaba)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
phpcbf --standard=PSR2 src tests
-
2014-06-20T20:30:30+02:00 (commit #a4835d1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Use trigger_error() to flag features as deprecated
-
2014-06-16T12:41:24+02:00 (commit #e3c63e4)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Deprecate assertTag() and assertSelect*() for #1292
-
2014-04-30T14:37:03+02:00 (commit #e99b45e)
Author: jeroendedauw (jeroendedauw@gmail.com) / Commiter: jeroendedauw (jeroendedauw@gmail.com)
Fix type in type hint This parameter can also be a boolean or an array
-
2014-04-23T17:27:29+02:00 (commit #823130c)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Make PhpStorm happy by giving the $delta argument an actual float as its default value
-
2014-02-14T18:31:32+01:00 (commit #e5b50bc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Next version will be 4.0
-
2014-01-22T19:43:07+01:00 (commit #02b42d7)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on formatting code according to PSR-2
-
2014-01-20T17:21:13+01:00 (commit #3a5808f)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup
-
2014-01-17T09:30:46+01:00 (commit #1cbd7c4)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2014-01-17T06:51:13+01:00 (commit #c8629d0)
Author: USAMI Kenta (tadsan@zonu.me) / Commiter: USAMI Kenta (tadsan@zonu.me)
Add assertNotTrue/assertNotFalse method
-
2014-01-09T08:11:47+01:00 (commit #205e008)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2014-01-07T14:37:15+01:00 (commit #991bf00)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Revert "Next stable release will be PHPUnit 4" This reverts commit f4ee7815d1bb1664786fe95b226a3def20f24aa9.
-
2014-01-06T09:05:08+01:00 (commit #f4ee781)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Next stable release will be PHPUnit 4
-
2014-01-05T16:13:18+01:00 (commit #0b0720a)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2014-01-05T16:09:00+01:00 (commit #043c59b)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Make getStaticAttribute() and getObjectAttribute() public
-
2014-01-05T16:05:11+01:00 (commit #b9dd0ea)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2014-01-03T16:44:56+01:00 (commit #8db4bf9)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Refactor assertInternalType() and assertNotInternalType()
-
2014-01-03T16:35:53+01:00 (commit #49a90be)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Refactor assertInstanceOf() and assertNotInstanceOf()
-
2014-01-03T12:32:15+01:00 (commit #4eb8978)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2013-10-30T07:59:13+01:00 (commit #672d9c9)
Author: Christopher Hopper (christopher.hopper@peakadventuretravel.com) / Commiter: Christopher Hopper (christopher.hopper@peakadventuretravel.com)
Rename paramter to PHPUnit_Framework_Assert::assertJson The first parameter to assertJson should be the actual JSON string, not the expected JSON string. The DOCBLOCK comment also needed ammending.
-
2013-06-29T21:52:46+02:00 (commit #1997df8)
Author: Max Tsepkov (max@yogi.pw) / Commiter: Max Tsepkov (max@yogi.pw)
Fix "suffix" comment
-
2013-06-01T12:07:23+02:00 (commit #76b314a)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix
-
2013-06-01T12:06:01+02:00 (commit #8422e33)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix
-
2013-06-01T06:41:46+02:00 (commit #89b9c5d)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Improved support for asserting on traversable objects. * Assertions using `PHPUnit_Framework_Constraint_Count` now support traversable objects. * Assertions using `PHPUnit_Framework_Constraint_TraversableContains` now give messages that mention the `Traversable` interface.
-
2013-05-17T07:17:13+02:00 (commit #b63b978)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Rename `arrayCount()` -> `countOf()`.
-
2013-05-17T05:35:57+02:00 (commit #4d8683e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Jeff Welch (sb@sebastian-bergmann.de)
Fix whitespace
-
2013-05-16T09:09:40+02:00 (commit #fbe9d46)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2013-05-14T16:34:10+02:00 (commit #226dde5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix whitespace
-
2013-05-04T12:44:49+02:00 (commit #aa917f1)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Fixed #891 Better messages when JSON-related assertions receive invalid JSON.
-
2013-03-15T00:44:46+01:00 (commit #b0b0eda)
Author: Fred (fred@iadvize.com) / Commiter: Fred (fred@iadvize.com)
Update all the assertions that depend on TraversableContains. Also add tests for all the impacted assertions. (assert*Contains)
-
2013-03-15T00:27:11+01:00 (commit #255f5cc)
Author: Fred (fred@iadvize.com) / Commiter: Fred (fred@iadvize.com)
Allow identity checking for non object types in TraversableContains assertions. This fixes #745. The possibility to check identity for non object is done by adding a new optional parameter. This comes in addition to the existing one that already allow to check object identity or not.
-
2013-03-13T15:12:34+01:00 (commit #5684d75)
Author: Agop Seropyan (agopseropyan@gmail.com) / Commiter: Agop Seropyan (agopseropyan@gmail.com)
Changin 'valid name of attrubute with valid attribute name'
-
2013-03-13T15:07:35+01:00 (commit #0ad7c41)
Author: Agop Seropyan (agopseropyan@gmail.com) / Commiter: Agop Seropyan (agopseropyan@gmail.com)
Fixing a typo when reporting invalid attribute name
-
2013-03-13T14:49:18+01:00 (commit #8d44664)
Author: Agop Seropyan (agopseropyan@gmail.com) / Commiter: Agop Seropyan (agopseropyan@gmail.com)
Changes made for issue #855: - Added additional validation of attribute name in assertions using class/object attributes - Added new Test in Tests/Framework/AssertTest.php to cover attribute validation
-
2013-01-07T11:37:52+01:00 (commit #c517984)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year
-
2012-11-15T16:57:34+01:00 (commit #1fb69e5)
Author: Martin Malek (github@marten-online.com) / Commiter: Martin Malek (github@marten-online.com)
Fix wrong parameter exceptionFixed
-
2012-11-14T17:54:09+01:00 (commit #1dbe9cf)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Move getStaticAttribute() and getObjectAttribute() from PHPUnit_Util_Class to PHPUnit_Framework_Assert.
-
2012-11-07T14:49:49+01:00 (commit #94d9c06)
Author: Alexander M. Turek (me@derrabus.de) / Commiter: Alexander M. Turek (me@derrabus.de)
$callback parameter was missing
-
2012-09-24T06:47:44+02:00 (commit #81ab540)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Do not perform string replacement for @package_version@ anymore.
-
2012-09-10T20:06:37+02:00 (commit #351e770)
Author: Pascal Borreli (pascal@borreli.com) / Commiter: Pascal Borreli (pascal@borreli.com)
Fixed missing static
-
2012-08-28T15:17:48+02:00 (commit #ed2eb77)
Author: Alexander Menk (a.menk@netz98.de) / Commiter: Alexander Menk (a.menk@netz98.de)
Added shortcut to get a PHPUnit_Framework_Constraint_Count instance
-
2012-05-05T19:32:02+02:00 (commit #a6d8806)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Fixed all outstand phpcs issues
-
2012-05-05T15:44:36+02:00 (commit #a14fb5b)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Removed the negation of assertContainsOnlyInstanceOf like discussed in #515 as there is no obvious usecase for it
-
2012-04-30T12:02:38+02:00 (commit #5786e50)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
List The BSD 3-Clause License correctly and consistently. Thanks to Christian Aistleitner <christian@quelltextlich.at> for bringing this issue to my attention.
-
2012-04-18T15:57:59+02:00 (commit #ac4b6a9)
Author: Jeremy Cook (jeremycook0@gmail.com) / Commiter: Jeremy Cook (jeremycook0@gmail.com)
Added 'assertContainsOnlyInstancesOf' and 'assertNotContainsOnlyInstancesOf' methods with test cases for these.
-
2012-04-18T14:44:55+02:00 (commit #5cf9e8f)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
Docfix: Closes #549
-
2012-04-01T00:05:29+02:00 (commit #8590556)
Author: trapp (rapp@equinoxe.info) / Commiter: Volker Dusch (rapp@equinoxe.info)
New constraint matching against a callback.
-
2012-03-31T16:38:00+02:00 (commit #c4573a7)
Author: Volker Dusch (github@wallbash.com) / Commiter: Volker Dusch (github@wallbash.com)
ChangeLog entry, cleanup and more tests for #295
-
2012-03-31T16:26:15+02:00 (commit #82c91a7)
Author: Victor Karamzin (admin@visor.ws) / Commiter: Volker Dusch (admin@visor.ws)
Add ability to pass ArrayAccess instances to assertArrayHasKey and assertArrayNotHasKey assertions refs #295: Support ArrayObject with assertArrayHasKey assertion
-
2012-03-24T15:55:08+01:00 (commit #2e1fb8f)
Author: Jeremy Cook (jeremycook0@gmail.com) / Commiter: Jeremy Cook (jeremycook0@gmail.com)
Added 'containsOnlyInstancesOf' method with associated test case.
-
2012-03-01T23:02:11+01:00 (commit #b4c0779)
Author: Jeremy Cook (jeremycook0@gmail.com) / Commiter: Jeremy Cook (jeremycook0@gmail.com)
Added argument to containsOnly to specify if the type is native or not and a test case for this.
-
2012-01-01T11:21:16+01:00 (commit #aae6c38)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2011-12-27T10:21:52+01:00 (commit #37cacc9)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
PHPUnit no longer throws exceptions that do not extend PHPUnit_Framework_Exception.
-
2011-12-22T18:51:23+01:00 (commit #4bf0f7c)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Even more work on failure messages for expected exceptions.
-
2011-11-27T17:59:32+01:00 (commit #cf23d99)
Author: Bastian Feder (github@bastian-feder.de) / Commiter: Bastian Feder (github@bastian-feder.de)
adapted new name of the JSON message provider to all affected classes, Fixed related tests
-
2011-11-27T17:04:11+01:00 (commit #cef7317)
Author: Bastian Feder (github@bastian-feder.de) / Commiter: Bastian Feder (github@bastian-feder.de)
Added assertions and contraint to verify JSON encoded data
-
2011-09-04T11:30:30+02:00 (commit #fe44b34)
Author: Andreas Wolf (andreas.wolf@ikt-werk.de) / Commiter: Andreas Wolf (andreas.wolf@ikt-werk.de)
Bugfix: wrong parameter names in assertNotSameSize()
-
2011-09-03T11:57:33+02:00 (commit #2898d06)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add assertAttributeCount() and assertAttributeNotCount().
-
2011-09-03T11:54:38+02:00 (commit #3c51969)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix signature.
-
2011-08-29T07:53:47+02:00 (commit #a077184)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup.
-
2011-08-23T23:50:37+02:00 (commit #b397531)
Author: Jeremy Harris (jeremy@42pixels.com) / Commiter: Jeremy Harris (jeremy@42pixels.com)
Minor documentation fix for PHPUnit_Framework_Assert::assertTag()
-
2011-06-14T17:04:40+02:00 (commit #8f56dd6)
Author: Bernhard Schussek (bschussek@2bepublished.at) / Commiter: Bernhard Schussek (bschussek@2bepublished.at)
Claimed authorship in modified files
-
2011-06-14T17:04:40+02:00 (commit #7b37221)
Author: Bernhard Schussek (bschussek@2bepublished.at) / Commiter: Bernhard Schussek (bschussek@2bepublished.at)
Modified constraint subframework to use the new comparator classes
-
2011-06-03T05:32:26+02:00 (commit #d8d8db3)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Refs GH-260 * Replaced variables that referenced nodes with variables that reference elements.
-
2011-06-03T05:23:24+02:00 (commit #e80bc4d)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Fixes GH-260 * `PHPUnit_Framework_Assert::assertEqualXmlStructure()` should only compare `DOMElement` objects.
-
2011-03-31T09:58:06+02:00 (commit #99a61a1)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on assertSameSize() and assertNotSameSize().
-
2011-02-13T14:14:02+01:00 (commit #76816b0)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add an option to disable the check for object identity in assertContains() and related methods.
-
2011-01-07T09:54:37+01:00 (commit #3612e84)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Refactor.
-
2011-01-07T09:40:38+01:00 (commit #dd8f8f5)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix.
-
2011-01-04T15:46:32+01:00 (commit #2d2bd38)
Author: Ralph Schindler (ralphschindler@yahoo.com) / Commiter: Ralph Schindler (ralphschindler@yahoo.com)
Added a system listener to handle deprecation of phpunit feature in a backwards compatible way Listener is on by default in PHPUnit_TextUI_TestRunner
-
2010-12-31T11:45:34+01:00 (commit #bee3344)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Bump copyright year.
-
2010-12-18T08:11:47+01:00 (commit #1332640)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Properly deprecate assertType() and assertNotType() as well as assertAttributeType() and assertAttributeNotType().
-
2010-12-17T20:29:46+01:00 (commit #732d213)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove assertType() and assertNotType() as well as assertAttributeType() and assertAttributeNotType().
-
2010-11-23T14:23:02+01:00 (commit #3cdaf00)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Close #76.
-
2010-10-22T21:00:28+02:00 (commit #8443ba8)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Implement assertNotCount().
-
2010-10-22T20:53:31+02:00 (commit #7c3cd98)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Cleanup.
-
2010-10-22T20:34:50+02:00 (commit #1a28532)
Author: Benjamin Steininger (robo47@robo47.net) / Commiter: Sebastian Bergmann (robo47@robo47.net)
Added assertCount (arrays, Iterator and Countable)
-
2010-10-16T22:20:40+02:00 (commit #ee6fae6)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Sebastian Bergmann (whatthejeff@gmail.com)
Added the missing `$message` argument to the assertion that checks for a specific count in `PHPUnit_Framework_Assert::assertSelectEquals()`. This refs issue_47.
-
2010-08-16T02:30:59+02:00 (commit #6fdc88b)
Author: Jeff Welch (whatthejeff@gmail.com) / Commiter: Jeff Welch (whatthejeff@gmail.com)
Added the stack trace for when an expected exception is not thrown after calling `PHPUnit_Framework_TestCase::setExpectedException()`. This refs issue_5.
-
2010-07-07T12:42:23+02:00 (commit #f0d9cdd)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Change email address.
-
2010-06-15T09:19:30+02:00 (commit #df26577)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
sed -i 's/[ \t]*$//' **/*.php
-
2010-06-12T20:25:54+02:00 (commit #d19a737)
Author: Mark Story (mark@mark-story.com) / Commiter: Mark Story (mark@mark-story.com)
Removing trailing whitespace from files. Refs #1063
-
2010-05-18T16:13:08+02:00 (commit #0f2b39e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove superfluous @abstract annotation.
-
2010-04-14T11:50:56+02:00 (commit #f3325e0)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Amend implementation of TRAC-1038.
-
2010-04-14T10:55:54+02:00 (commit #7bd0383)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Implement TRAC-1038.
-
2010-04-14T10:45:13+02:00 (commit #27c7299)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
This reverts commit b5eb24b6e346acb9021016312570f9948e3d221c.
-
2010-04-14T07:33:28+02:00 (commit #b5eb24b)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Fix TRAC-1038.
-
2010-04-05T17:41:26+02:00 (commit #471d69e)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add @subpackage annotation.
-
2010-03-18T12:01:25+01:00 (commit #6fde3bc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add assertAttributeEmpty() and assertAttributeNotEmpty().
-
2010-02-02T21:12:10+01:00 (commit #3b73baf)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Add assertEmpty() and assertNotEmpty().
-
2010-02-02T19:22:18+01:00 (commit #15116fc)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Rename variable.
-
2010-02-02T14:14:29+01:00 (commit #bc1aaaa)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Remove closing PHP tags.
-
2010-01-19T09:39:03+01:00 (commit #fb48a69)
Author: Sebastian Bergmann (sb@sebastian-bergmann.de) / Commiter: Sebastian Bergmann (sb@sebastian-bergmann.de)
Initial work on autoloading.