1 | <?php |
||
18 | class FabienCrassatCurriculumVitaeExtensionTest extends \PHPUnit\Framework\TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @var ContainerBuilder |
||
22 | */ |
||
23 | private $configuration; |
||
24 | private $loader; |
||
25 | |||
26 | public function setUp() |
||
27 | { |
||
28 | $this->configuration = new ContainerBuilder; |
||
29 | $this->loader = new FabienCrassatCurriculumVitaeExtension; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Tests services existence |
||
34 | */ |
||
35 | public function testLoadDefaultParameters() |
||
56 | |||
57 | /** |
||
58 | * Tests custom mailer |
||
59 | */ |
||
60 | public function testLoadCustomParameters() |
||
74 | |||
75 | /** |
||
76 | * Creates an empty configuration |
||
77 | */ |
||
78 | private function createEmptyConfiguration() |
||
82 | |||
83 | /** |
||
84 | * Creates a full configuration |
||
85 | */ |
||
86 | private function createFullConfiguration() |
||
90 | |||
91 | /** |
||
92 | * Creates a configuration |
||
93 | */ |
||
94 | private function createConfiguration($config) |
||
99 | |||
100 | /** |
||
101 | * Gets an empty config |
||
102 | * |
||
103 | * @return String[] |
||
104 | */ |
||
105 | private function getEmptyConfig() |
||
113 | |||
114 | /** |
||
115 | * Gets a full config |
||
116 | * |
||
117 | * @return String[] |
||
118 | */ |
||
119 | private function getFullConfig() |
||
135 | |||
136 | /** |
||
137 | * Asserts the identifiers matched parameters |
||
138 | */ |
||
139 | private function assertHasParameters() |
||
146 | |||
147 | /** |
||
148 | * Compare the identifiers matched parameters |
||
149 | */ |
||
150 | private function compareParameters($parameters) |
||
159 | |||
160 | /** |
||
161 | * Asserts the given identifier matched a parameter |
||
162 | * |
||
163 | * @param string $identifier |
||
164 | */ |
||
165 | private function assertHasParameter($identifier) |
||
169 | } |
||
170 |