| @@ 20-52 (lines=33) @@ | ||
| 17 | * @author Ivannis Suárez Jerez <[email protected]> |
|
| 18 | * @author Karel Osorio Ramírez <[email protected]> |
|
| 19 | */ |
|
| 20 | class AndSpecificationTests extends SpecificationTestCase |
|
| 21 | { |
|
| 22 | /** |
|
| 23 | * {@inheritdoc} |
|
| 24 | */ |
|
| 25 | public function defaultConstructorArguments() |
|
| 26 | { |
|
| 27 | return array(Criteria::gt(25), Criteria::lte(30)); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | protected function evaluateSuccessDataProvider() |
|
| 34 | { |
|
| 35 | return array( |
|
| 36 | array(26), |
|
| 37 | array(30), |
|
| 38 | ); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * {@inheritdoc} |
|
| 43 | */ |
|
| 44 | protected function evaluateFailureDataProvider() |
|
| 45 | { |
|
| 46 | return array( |
|
| 47 | array(20), |
|
| 48 | array(25), |
|
| 49 | array(31), |
|
| 50 | ); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 20-52 (lines=33) @@ | ||
| 17 | * @author Ivannis Suárez Jerez <[email protected]> |
|
| 18 | * @author Karel Osorio Ramírez <[email protected]> |
|
| 19 | */ |
|
| 20 | class NotSpecificationTests extends SpecificationTestCase |
|
| 21 | { |
|
| 22 | /** |
|
| 23 | * {@inheritdoc} |
|
| 24 | */ |
|
| 25 | public function defaultConstructorArguments() |
|
| 26 | { |
|
| 27 | return array(Criteria::lte(25)->or(Criteria::gt(30))); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | protected function evaluateSuccessDataProvider() |
|
| 34 | { |
|
| 35 | return array( |
|
| 36 | array(26), |
|
| 37 | array(30), |
|
| 38 | ); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * {@inheritdoc} |
|
| 43 | */ |
|
| 44 | protected function evaluateFailureDataProvider() |
|
| 45 | { |
|
| 46 | return array( |
|
| 47 | array(20), |
|
| 48 | array(25), |
|
| 49 | array(31), |
|
| 50 | ); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 20-52 (lines=33) @@ | ||
| 17 | * @author Ivannis Suárez Jerez <[email protected]> |
|
| 18 | * @author Karel Osorio Ramírez <[email protected]> |
|
| 19 | */ |
|
| 20 | class OrSpecificationTests extends SpecificationTestCase |
|
| 21 | { |
|
| 22 | /** |
|
| 23 | * {@inheritdoc} |
|
| 24 | */ |
|
| 25 | public function defaultConstructorArguments() |
|
| 26 | { |
|
| 27 | return array(Criteria::lte(25), Criteria::gt(30)); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | protected function evaluateSuccessDataProvider() |
|
| 34 | { |
|
| 35 | return array( |
|
| 36 | array(20), |
|
| 37 | array(25), |
|
| 38 | array(31), |
|
| 39 | ); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|
| 44 | */ |
|
| 45 | protected function evaluateFailureDataProvider() |
|
| 46 | { |
|
| 47 | return array( |
|
| 48 | array(26), |
|
| 49 | array(30), |
|
| 50 | ); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||