1 | <?php |
||
22 | class MilioooMessagingExtensionTest extends \PHPUnit_Framework_TestCase |
||
23 | { |
||
24 | /** @var ContainerBuilder */ |
||
25 | protected $containerBuilder; |
||
26 | |||
27 | /** |
||
28 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
29 | */ |
||
30 | public function testLoadThrowsExceptionUnlessMessageClassSet() |
||
37 | |||
38 | /** |
||
39 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
40 | */ |
||
41 | public function testLoadThrowsExceptionUnlessMessageMetaClassSet() |
||
48 | |||
49 | /** |
||
50 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
51 | */ |
||
52 | public function testLoadThrowsExceptionUnlessThreadClassSet() |
||
59 | |||
60 | /** |
||
61 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
||
62 | */ |
||
63 | public function testLoadThrowsExceptionUnlessThreadMetaSet() |
||
70 | |||
71 | public function testMessagingLoadModelClassesWithDefaults() |
||
79 | |||
80 | public function testMessagingLoadsDefinitionsFromBuildersXml() |
||
85 | |||
86 | protected function createEmptyConfiguration() |
||
94 | |||
95 | /** |
||
96 | * gets an empty config |
||
97 | * |
||
98 | * @return array |
||
|
|||
99 | */ |
||
100 | protected function getEmptyConfig() |
||
113 | |||
114 | /** |
||
115 | * Asserts that a parameter key has a certain value |
||
116 | * |
||
117 | * @param mixed $value |
||
118 | * @param string $key |
||
119 | */ |
||
120 | private function assertParameter($value, $key) |
||
124 | |||
125 | /** |
||
126 | * Asserts that a definition exists |
||
127 | * |
||
128 | * @param string $id |
||
129 | */ |
||
130 | private function assertHasDefinition($id) |
||
134 | } |
||
135 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.