@@ 26-41 (lines=16) @@ | ||
23 | /** |
|
24 | * {@inheritdoc} |
|
25 | */ |
|
26 | protected function promiseDataProvider() |
|
27 | { |
|
28 | $pending = $this->newDefaultTestedInstance(); |
|
29 | ||
30 | $fulfilled = $this->newDefaultTestedInstance(); |
|
31 | $fulfilled->resolve($this->defaultResolveValue()); |
|
32 | ||
33 | $rejected = $this->newDefaultTestedInstance(); |
|
34 | $rejected->reject($this->defaultRejectReason()); |
|
35 | ||
36 | return array( |
|
37 | 'pending' => array($pending), |
|
38 | 'fulfilled' => array($fulfilled), |
|
39 | 'rejected' => array($rejected), |
|
40 | ); |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * {@inheritdoc} |
@@ 136-151 (lines=16) @@ | ||
133 | /** |
|
134 | * {@inheritdoc} |
|
135 | */ |
|
136 | protected function promiseDataProvider() |
|
137 | { |
|
138 | $pending = $this->newDefaultTestedInstance(); |
|
139 | ||
140 | $fulfilled = $this->newDefaultTestedInstance(); |
|
141 | $this->resolve($this->defaultResolveValue()); |
|
142 | ||
143 | $rejected = $this->newDefaultTestedInstance(); |
|
144 | $this->reject($this->defaultRejectReason()); |
|
145 | ||
146 | return array( |
|
147 | 'pending' => array($pending), |
|
148 | 'fulfilled' => array($fulfilled), |
|
149 | 'rejected' => array($rejected), |
|
150 | ); |
|
151 | } |
|
152 | } |
|
153 |