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