@@ -37,8 +37,8 @@ public function testThrowIfEmptyNameGivenOnConstruction()
37
37
38
38
public function testShouldAllowAddConfigurationAsStringDsn ()
39
39
{
40
- $ tb = new TreeBuilder ();
41
- $ rootNode = $ tb ->root ( ' foo ' );
40
+ $ tb = new TreeBuilder (' foo ' );
41
+ $ rootNode = $ tb ->getRootNode ( );
42
42
43
43
$ rootNode ->append (TransportFactory::getConfiguration ());
44
44
@@ -59,8 +59,8 @@ public function testShouldAllowAddConfigurationAsStringDsn()
59
59
*/
60
60
public function testShouldAllowAddConfigurationAsDsnWithoutSlashes ()
61
61
{
62
- $ tb = new TreeBuilder ();
63
- $ rootNode = $ tb ->root ( ' foo ' );
62
+ $ tb = new TreeBuilder (' foo ' );
63
+ $ rootNode = $ tb ->getRootNode ( );
64
64
65
65
$ rootNode ->append (TransportFactory::getConfiguration ());
66
66
@@ -76,8 +76,8 @@ public function testShouldAllowAddConfigurationAsDsnWithoutSlashes()
76
76
77
77
public function testShouldSetNullTransportIfNullGiven ()
78
78
{
79
- $ tb = new TreeBuilder ();
80
- $ rootNode = $ tb ->root ( ' foo ' );
79
+ $ tb = new TreeBuilder (' foo ' );
80
+ $ rootNode = $ tb ->getRootNode ( );
81
81
82
82
$ rootNode ->append (TransportFactory::getConfiguration ());
83
83
@@ -93,8 +93,8 @@ public function testShouldSetNullTransportIfNullGiven()
93
93
94
94
public function testShouldSetNullTransportIfEmptyStringGiven ()
95
95
{
96
- $ tb = new TreeBuilder ();
97
- $ rootNode = $ tb ->root ( ' foo ' );
96
+ $ tb = new TreeBuilder (' foo ' );
97
+ $ rootNode = $ tb ->getRootNode ( );
98
98
99
99
$ rootNode ->append (TransportFactory::getConfiguration ());
100
100
@@ -110,8 +110,8 @@ public function testShouldSetNullTransportIfEmptyStringGiven()
110
110
111
111
public function testShouldSetNullTransportIfEmptyArrayGiven ()
112
112
{
113
- $ tb = new TreeBuilder ();
114
- $ rootNode = $ tb ->root ( ' foo ' );
113
+ $ tb = new TreeBuilder (' foo ' );
114
+ $ rootNode = $ tb ->getRootNode ( );
115
115
116
116
$ rootNode ->append (TransportFactory::getConfiguration ());
117
117
@@ -127,8 +127,8 @@ public function testShouldSetNullTransportIfEmptyArrayGiven()
127
127
128
128
public function testThrowIfEmptyDsnGiven ()
129
129
{
130
- $ tb = new TreeBuilder ();
131
- $ rootNode = $ tb ->root ( ' foo ' );
130
+ $ tb = new TreeBuilder (' foo ' );
131
+ $ rootNode = $ tb ->getRootNode ( );
132
132
133
133
$ rootNode ->append (TransportFactory::getConfiguration ());
134
134
@@ -140,8 +140,8 @@ public function testThrowIfEmptyDsnGiven()
140
140
141
141
public function testThrowIfFactoryClassAndFactoryServiceSetAtTheSameTime ()
142
142
{
143
- $ tb = new TreeBuilder ();
144
- $ rootNode = $ tb ->root ( ' foo ' );
143
+ $ tb = new TreeBuilder (' foo ' );
144
+ $ rootNode = $ tb ->getRootNode ( );
145
145
146
146
$ rootNode ->append (TransportFactory::getConfiguration ());
147
147
@@ -159,8 +159,8 @@ public function testThrowIfFactoryClassAndFactoryServiceSetAtTheSameTime()
159
159
160
160
public function testThrowIfConnectionFactoryClassUsedWithFactoryClassAtTheSameTime ()
161
161
{
162
- $ tb = new TreeBuilder ();
163
- $ rootNode = $ tb ->root ( ' foo ' );
162
+ $ tb = new TreeBuilder (' foo ' );
163
+ $ rootNode = $ tb ->getRootNode ( );
164
164
165
165
$ rootNode ->append (TransportFactory::getConfiguration ());
166
166
@@ -178,8 +178,8 @@ public function testThrowIfConnectionFactoryClassUsedWithFactoryClassAtTheSameTi
178
178
179
179
public function testThrowIfConnectionFactoryClassUsedWithFactoryServiceAtTheSameTime ()
180
180
{
181
- $ tb = new TreeBuilder ();
182
- $ rootNode = $ tb ->root ( ' foo ' );
181
+ $ tb = new TreeBuilder (' foo ' );
182
+ $ rootNode = $ tb ->getRootNode ( );
183
183
184
184
$ rootNode ->append (TransportFactory::getConfiguration ());
185
185
$ processor = new Processor ();
@@ -196,8 +196,8 @@ public function testThrowIfConnectionFactoryClassUsedWithFactoryServiceAtTheSame
196
196
197
197
public function testShouldAllowSetFactoryClass ()
198
198
{
199
- $ tb = new TreeBuilder ();
200
- $ rootNode = $ tb ->root ( ' foo ' );
199
+ $ tb = new TreeBuilder (' foo ' );
200
+ $ rootNode = $ tb ->getRootNode ( );
201
201
202
202
$ rootNode ->append (TransportFactory::getConfiguration ());
203
203
$ processor = new Processor ();
@@ -214,8 +214,8 @@ public function testShouldAllowSetFactoryClass()
214
214
215
215
public function testShouldAllowSetFactoryService ()
216
216
{
217
- $ tb = new TreeBuilder ();
218
- $ rootNode = $ tb ->root ( ' foo ' );
217
+ $ tb = new TreeBuilder (' foo ' );
218
+ $ rootNode = $ tb ->getRootNode ( );
219
219
220
220
$ rootNode ->append (TransportFactory::getConfiguration ());
221
221
$ processor = new Processor ();
@@ -232,8 +232,8 @@ public function testShouldAllowSetFactoryService()
232
232
233
233
public function testShouldAllowSetConnectionFactoryClass ()
234
234
{
235
- $ tb = new TreeBuilder ();
236
- $ rootNode = $ tb ->root ( ' foo ' );
235
+ $ tb = new TreeBuilder (' foo ' );
236
+ $ rootNode = $ tb ->getRootNode ( );
237
237
238
238
$ rootNode ->append (TransportFactory::getConfiguration ());
239
239
$ processor = new Processor ();
@@ -250,8 +250,8 @@ public function testShouldAllowSetConnectionFactoryClass()
250
250
251
251
public function testThrowIfExtraOptionGiven ()
252
252
{
253
- $ tb = new TreeBuilder ();
254
- $ rootNode = $ tb ->root ( ' foo ' );
253
+ $ tb = new TreeBuilder (' foo ' );
254
+ $ rootNode = $ tb ->getRootNode ( );
255
255
256
256
$ rootNode ->append (TransportFactory::getConfiguration ());
257
257
$ processor = new Processor ();
0 commit comments