Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
== Version 2.0.1: Released Jul 09 2020 ==
2
 
3
* Added support for PHP 8
4
 
5
 
6
== Version 2.0: Released Feb 26 2016 ==
7
 
8
* Removed automatic loading of global functions
9
 
10
 
11
== Version 1.1.0: Released Feb 2 2012 ==
12
 
13
Issues Fixed: 121, 138, 147
14
 
15
* Added non-empty matchers to complement the emptiness-matching forms.
16
 
17
  - nonEmptyString()
18
  - nonEmptyArray()
19
  - nonEmptyTraversable()
20
 
21
* Added ability to pass variable arguments to several array-based matcher
22
  factory methods so they work like allOf() et al.
23
 
24
  - anArray()
25
  - arrayContainingInAnyOrder(), containsInAnyOrder()
26
  - arrayContaining(), contains()
27
  - stringContainsInOrder()
28
 
29
* Matchers that accept an array of matchers now also accept variable arguments.
30
  Any non-matcher arguments are wrapped by IsEqual.
31
 
32
* Added noneOf() as a shortcut for not(anyOf()).
33
 
34
 
35
== Version 1.0.0: Released Jan 20 2012 ==
36
 
37
Issues Fixed: 119, 136, 139, 141, 148, 149, 172
38
 
39
* Moved hamcrest.php into Hamcrest folder and renamed to Hamcrest.php.
40
  This is more in line with PEAR packaging standards.
41
 
42
* Renamed callable() to callableValue() for compatibility with PHP 5.4.
43
 
44
* Added Hamcrest_Text_StringContainsIgnoringCase to assert using stripos().
45
 
46
    assertThat('fOObAr', containsStringIgnoringCase('oba'));
47
    assertThat('fOObAr', containsString('oba')->ignoringCase());
48
 
49
* Fixed Hamcrest_Core_IsInstanceOf to return false for native types.
50
 
51
* Moved string-based matchers to Hamcrest_Text package.
52
  StringContains, StringEndsWith, StringStartsWith, and SubstringMatcher
53
 
54
* Hamcrest.php and Hamcrest_Matchers.php are now built from @factory doctags.
55
  Added @factory doctag to every static factory method.
56
 
57
* Hamcrest_Matchers and Hamcrest.php now import each matcher as-needed
58
  and Hamcrest.php calls the matchers directly instead of Hamcrest_Matchers.
59
 
60
 
61
== Version 0.3.0: Released Jul 26 2010 ==
62
 
63
* Added running count to Hamcrest_MatcherAssert with methods to get and reset it.
64
  This can be used by unit testing frameworks for reporting.
65
 
66
* Added Hamcrest_Core_HasToString to assert return value of toString() or __toString().
67
 
68
    assertThat($anObject, hasToString('foo'));
69
 
70
* Added Hamcrest_Type_IsScalar to assert is_scalar().
71
  Matches values of type bool, int, float, double, and string.
72
 
73
    assertThat($count, scalarValue());
74
    assertThat('foo', scalarValue());
75
 
76
* Added Hamcrest_Collection package.
77
 
78
  - IsEmptyTraversable
79
  - IsTraversableWithSize
80
 
81
    assertThat($iterator, emptyTraversable());
82
    assertThat($iterator, traversableWithSize(5));
83
 
84
* Added Hamcrest_Xml_HasXPath to assert XPath expressions or the content of nodes in an XML/HTML DOM.
85
 
86
    assertThat($dom, hasXPath('books/book/title'));
87
    assertThat($dom, hasXPath('books/book[contains(title, "Alice")]', 3));
88
    assertThat($dom, hasXPath('books/book/title', 'Alice in Wonderland'));
89
    assertThat($dom, hasXPath('count(books/book)', greaterThan(10)));
90
 
91
* Added aliases to match the Java API.
92
 
93
    hasEntry() -> hasKeyValuePair()
94
    hasValue() -> hasItemInArray()
95
    contains() -> arrayContaining()
96
    containsInAnyOrder() -> arrayContainingInAnyOrder()
97
 
98
* Added optional subtype to Hamcrest_TypeSafeMatcher to enforce object class or resource type.
99
 
100
* Hamcrest_TypeSafeDiagnosingMatcher now extends Hamcrest_TypeSafeMatcher.
101
 
102
 
103
== Version 0.2.0: Released Jul 14 2010 ==
104
 
105
Issues Fixed: 109, 111, 114, 115
106
 
107
* Description::appendValues() and appendValueList() accept Iterator and IteratorAggregate. [111]
108
  BaseDescription::appendValue() handles IteratorAggregate.
109
 
110
* assertThat() accepts a single boolean parameter and
111
  wraps any non-Matcher third parameter with equalTo().
112
 
113
* Removed null return value from assertThat(). [114]
114
 
115
* Fixed wrong variable name in contains(). [109]
116
 
117
* Added Hamcrest_Core_IsSet to assert isset().
118
 
119
    assertThat(array('foo' => 'bar'), set('foo'));
120
    assertThat(array('foo' => 'bar'), notSet('bar'));
121
 
122
* Added Hamcrest_Core_IsTypeOf to assert built-in types with gettype(). [115]
123
  Types: array, boolean, double, integer, null, object, resource, and string.
124
  Note that gettype() returns "double" for float values.
125
 
126
    assertThat($count, typeOf('integer'));
127
    assertThat(3.14159, typeOf('double'));
128
    assertThat(array('foo', 'bar'), typeOf('array'));
129
    assertThat(new stdClass(), typeOf('object'));
130
 
131
* Added type-specific matchers in new Hamcrest_Type package.
132
 
133
  - IsArray
134
  - IsBoolean
135
  - IsDouble (includes float values)
136
  - IsInteger
137
  - IsObject
138
  - IsResource
139
  - IsString
140
 
141
    assertThat($count, integerValue());
142
    assertThat(3.14159, floatValue());
143
    assertThat('foo', stringValue());
144
 
145
* Added Hamcrest_Type_IsNumeric to assert is_numeric().
146
  Matches values of type int and float/double or strings that are formatted as numbers.
147
 
148
    assertThat(5, numericValue());
149
    assertThat('-5e+3', numericValue());
150
 
151
* Added Hamcrest_Type_IsCallable to assert is_callable().
152
 
153
    assertThat('preg_match', callable());
154
    assertThat(array('SomeClass', 'SomeMethod'), callable());
155
    assertThat(array($object, 'SomeMethod'), callable());
156
    assertThat($object, callable());
157
    assertThat(function ($x, $y) { return $x + $y; }, callable());
158
 
159
* Added Hamcrest_Text_MatchesPattern for regex matching with preg_match().
160
 
161
    assertThat('foobar', matchesPattern('/o+b/'));
162
 
163
* Added aliases:
164
  - atLeast() for greaterThanOrEqualTo()
165
  - atMost() for lessThanOrEqualTo()
166
 
167
 
168
== Version 0.1.0: Released Jul 7 2010 ==
169
 
170
* Created PEAR package
171
 
172
* Core matchers
173