1 | <?php |
||
16 | class CappedCreditTest extends PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var CappedCredit |
||
21 | */ |
||
22 | protected $cappedCredit; |
||
23 | |||
24 | /** |
||
25 | * SetUp |
||
26 | */ |
||
27 | public function setUp() |
||
31 | |||
32 | public function testGetSetDate() |
||
39 | |||
40 | /** |
||
41 | * Test the other setter/getters which have no default values |
||
42 | * |
||
43 | * @param string $name |
||
44 | * @param mixed $value |
||
45 | * |
||
46 | * @dataProvider setterGetterProvider |
||
47 | */ |
||
48 | public function testSetterGetter($name, $value) |
||
57 | |||
58 | /** |
||
59 | * @return array |
||
60 | */ |
||
61 | public function setterGetterProvider() |
||
68 | |||
69 | public function testGetIdThrowsExceptionIfUserNotSet() |
||
74 | |||
75 | public function testGetIdContainsUserIdAndDate() |
||
86 | } |
||
87 |