CHANGELOG.md 7.92 KB
Newer Older
Simon Welsh's avatar
Simon Welsh committed
1 2
# Changelog

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## 5.7.0

* Updated to match PHPUnit 5.7
* Added:
  + `PHPUnit\Framework\Assert`
  + `PHPUnit\Framework\BaseTestListener`
  + `PHPUnit\Framework\TestListener`
  + `PHPUnit_Framework_TestCase::markAsRisky`
  + `$includeWarnings` argument to `PHPUnit_Framework_TestResult::wasSuccessful`
* Renamed:
  + `PHPUnit_Framework_ExceptionWrapper::$classname` to
    `PHPUnit_Framework_ExceptionWrapper::$className`
  + `PHPUnit_Framework_ExceptionWrapper::getClassname` to
    `PHPUnit_Framework_ExceptionWrapper::getClassName`

18 19 20 21 22
## 5.6.0

* Updated to match PHPUnit 5.6
* Added:
  + `PHPUnit_Framework_TestCase::createConfiguredMock`
23
  + `PHPUnit_Framework_TestCase::doesNotPerformAssertions`
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  + `PHPUnit_Framework_TestCase::getProvidedData`
  + `PHPUnit_Framework_Assert::assertDirectoryExists`
  + `PHPUnit_Framework_Assert::assertDirectoryIsReadable`
  + `PHPUnit_Framework_Assert::assertDirectoryIsWritable`
  + `PHPUnit_Framework_Assert::assertDirectoryNotExists`
  + `PHPUnit_Framework_Assert::assertDirectoryNotIsReadable`
  + `PHPUnit_Framework_Assert::assertDirectoryNotIsWritable`
  + `PHPUnit_Framework_Assert::assertFileIsReadable`
  + `PHPUnit_Framework_Assert::assertFileIsWritable`
  + `PHPUnit_Framework_Assert::assertFileNotIsReadable`
  + `PHPUnit_Framework_Assert::assertFileNotIsWritable`
  + `PHPUnit_Framework_Assert::assertIsReadable`
  + `PHPUnit_Framework_Assert::assertIsWritable`
  + `PHPUnit_Framework_Assert::assertNotIsReadable`
  + `PHPUnit_Framework_Assert::assertNotIsWritable`
  + `PHPUnit_Framework_Assert::directoryExists`
  + `PHPUnit_Framework_Assert::isReadable`
  + `PHPUnit_Framework_Assert::isWritable`
  + `PHPUnit_Framework_Constraint_DirectoryExists`
  + `PHPUnit_Framework_Constraint_IsReadable`
  + `PHPUnit_Framework_Constraint_IsWritable`
45 46 47 48
* Deprecated:
  + `PHPUnit_Framework_TestCase::hasPerformedExpectationsOnOutput`
  + `PHPUnit_Framework_TestCase::setExpectedException`
  + `PHPUnit_Framework_TestCase::setExpectedExceptionRegExp`
49
* `\PHPUnit\Framework\TestCase` is now `abstract`
50

Simon Welsh's avatar
Simon Welsh committed
51 52 53
## 5.5.0

* Updated to match PHPUnit 5.5
54 55
* Added:
  + `PHPUnit_Framework_TestCase::createPartialMock`
56 57
* Renamed:
  + `phpunit\framework\TestCase` to `PHPUnit\Framework\TestCase`
Simon Welsh's avatar
Simon Welsh committed
58

59 60 61 62
## 5.4.0

* Updated to match PHPUnit 5.4
* Added:
63
  + `phpunit\framework\TestCase`
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
  + `PHPUnit_Framework_TestCase::dataDescription`
  + `PHPUnit_Framework_TestCase::getGroups`
  + `PHPUnit_Framework_TestCase::hasSize`
  + `PHPUnit_Framework_TestCase::isLarge`
  + `PHPUnit_Framework_TestCase::isMedium`
  + `PHPUnit_Framework_TestCase::isSmall`
  + `PHPUnit_Framework_TestCase::setGroups`
  + `PHPUnit_Framework_TestCase::usesDataProvider`
  + `PHPUnit_Framework_TestCase::createMock`
  + `PHPUnit_Framework_TestCase::registerMockObject`
  + `PHPUnit_Framework_TestCase::setRegisterMockObjectsFromTestArgumentsRecursively`
  + `PHPUnit_Framework_TestResult::getTimeoutForLargeTests`
  + `PHPUnit_Framework_TestResult::setRegisterMockObjectsFromTestArgumentsRecursively`
* Deprecated:
  + `PHPUnit_Framework_TestCase::getMock`
  + `PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor`

81 82 83 84 85 86 87 88
## 5.3.0

* Updated to match PHPUnit 5.3
* Added:
  + `PHPUnit_Framework_MissingCoversAnnotationException`
* Removed:
  + `PHPUnit_Framework_InvalidCoversTargetError`

Simon Welsh's avatar
Simon Welsh committed
89 90 91
## 5.2.0

* Updated to match PHPUnit 5.2
92 93 94 95 96
* Added:
  + `PHPUnit_Framework_TestCase::expectException`
  + `PHPUnit_Framework_TestCase::expectExceptionCode`
  + `PHPUnit_Framework_TestCase::expectExceptionMessage`
  + `PHPUnit_Framework_TestCase::expectExceptionMessageRegExp`
97
  + `PHPUnit_Framework_CoveredCodeNotExecutedException`
98 99
* Removed:
  + `PHPUnit_Framework_TestListener::addWarning`
Simon Welsh's avatar
Simon Welsh committed
100

Simon Welsh's avatar
Simon Welsh committed
101 102 103 104 105 106 107
## 5.1.0

* Added:
  + `PHPUnit_Framework_WarningTestCase`
* Updated to match PHPUnit 5.1
* Marked terminal methods as `noreturn`

Simon Welsh's avatar
Simon Welsh committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
## 5.0.0

* Added:
  + `PHPUnit_Framework_Constraint_IsFinite`
  + `PHPUnit_Framework_Constraint_IsInfinite`
  + `PHPUnit_Framework_Constraint_IsNan`
* Updated to match PHPUnit 5.0

## 4.8.2

* Set up CI

## 4.8.1

* Added:
  + `PHPUnit_Exception`
  + `PHPUnit_Framework_AssertionFailedError`
  + `PHPUnit_Framework_BaseTestListener`
  + `PHPUnit_Framework_CodeCoverageException`
  + `PHPUnit_Framework_Constraint_And`
  + `PHPUnit_Framework_Constraint_ArrayHasKey`
  + `PHPUnit_Framework_Constraint_ArraySubset`
  + `PHPUnit_Framework_Constraint_Attribute`
  + `PHPUnit_Framework_Constraint_Callback`
  + `PHPUnit_Framework_Constraint_ClassHasAttribute`
  + `PHPUnit_Framework_Constraint_ClassHasStaticAttribute`
  + `PHPUnit_Framework_Constraint_Composite`
  + `PHPUnit_Framework_Constraint_Count`
  + `PHPUnit_Framework_Constraint_ExceptionCode`
  + `PHPUnit_Framework_Constraint_ExceptionMessageRegExp`
  + `PHPUnit_Framework_Constraint_ExceptionMessage`
  + `PHPUnit_Framework_Constraint_Exception`
  + `PHPUnit_Framework_Constraint_FileExists`
  + `PHPUnit_Framework_Constraint_GreaterThan`
  + `PHPUnit_Framework_Constraint_IsAnything`
  + `PHPUnit_Framework_Constraint_IsEmpty`
  + `PHPUnit_Framework_Constraint_IsEqual`
  + `PHPUnit_Framework_Constraint_IsFalse`
  + `PHPUnit_Framework_Constraint_IsIdentical`
  + `PHPUnit_Framework_Constraint_IsInstanceOf`
  + `PHPUnit_Framework_Constraint_IsJson`
  + `PHPUnit_Framework_Constraint_IsNull`
  + `PHPUnit_Framework_Constraint_IsTrue`
  + `PHPUnit_Framework_Constraint_IsType`
  + `PHPUnit_Framework_Constraint_JsonMatches_ErrorMessageProvider`
  + `PHPUnit_Framework_Constraint_JsonMatches`
  + `PHPUnit_Framework_Constraint_LessThan`
  + `PHPUnit_Framework_Constraint_Not`
  + `PHPUnit_Framework_Constraint_ObjectHasAttribute`
  + `PHPUnit_Framework_Constraint_Or`
  + `PHPUnit_Framework_Constraint_PCREMatch`
  + `PHPUnit_Framework_Constraint_SameSize`
  + `PHPUnit_Framework_Constraint_StringContains`
  + `PHPUnit_Framework_Constraint_StringEndsWith`
  + `PHPUnit_Framework_Constraint_StringMatches`
  + `PHPUnit_Framework_Constraint_StringStartsWith`
  + `PHPUnit_Framework_Constraint_TraversableContainsOnly`
  + `PHPUnit_Framework_Constraint_TraversableContains`
  + `PHPUnit_Framework_Constraint_Xor`
  + `PHPUnit_Framework_Constraint`
  + `PHPUnit_Framework_Error_Deprecated`
  + `PHPUnit_Framework_Error_Notice`
  + `PHPUnit_Framework_Error_Warning`
  + `PHPUnit_Framework_Error`
  + `PHPUnit_Framework_ExceptionWrapper`
  + `PHPUnit_Framework_Exception`
  + `PHPUnit_Framework_ExpectationFailedException`
  + `PHPUnit_Framework_IncompleteTestCase`
  + `PHPUnit_Framework_IncompleteTestError`
  + `PHPUnit_Framework_IncompleteTest`
  + `PHPUnit_Framework_InvalidCoversTargetError`
  + `PHPUnit_Framework_InvalidCoversTargetException`
  + `PHPUnit_Framework_OutputError`
  + `PHPUnit_Framework_RiskyTestError`
  + `PHPUnit_Framework_RiskyTest`
  + `PHPUnit_Framework_SkippedTestCase`
  + `PHPUnit_Framework_SkippedTestError`
  + `PHPUnit_Framework_SkippedTestSuiteError`
  + `PHPUnit_Framework_SkippedTest`
  + `PHPUnit_Framework_SyntheticError`
  + `PHPUnit_Framework_TestFailure`
  + `PHPUnit_Framework_TestListener`
  + `PHPUnit_Framework_TestResult`
  + `PHPUnit_Framework_TestSuite_DataProvider`
  + `PHPUnit_Framework_TestSuite`
  + `PHPUnit_Framework_UnintentionallyCoveredCodeError`
  + `PHPUnit_Framework_Warning`
  + `PHPUnit_Runner_Filter_Factory`
* Add PHPUnit as a required dependancy
* Add a README
* Added in `void` return types to assert methods
* Commented out un-known types. Can now run with `assume_php=false`
* Fully stubbed out the protected values in `PHPUnit_Framework_Assert`
* Fully stubbed out the protected values in `PHPUnit_Framework_TestCase`
* Updated class return types to use the actual class for constraints

## 4.8.0

* Added:
  - Interfaces:
    + `PHPUnit_Framework_SelfDescribing`
    + `PHPUnit_Framework_Test`
* Fully stubbed out the public values in `PHPUnit_Framework_Assert`
* Fully stubbed out the public values in `PHPUnit_Framework_TestCase`
* Now requires HHVM 3.9 or later
* Replaced the `mixed` type with more specific ones, where possible
* Updated to match PHPUnit 4.8
* Used the new `classname<T>` type introduced in HHVM 3.9

## 4.5.0

Initial release to match PHPUnit 4.5