@@ -82,10 +82,10 @@ public function testReplace()
82
82
83
83
public function testAddCatalogue ()
84
84
{
85
- $ r = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
85
+ $ r = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
86
86
$ r ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r ' ));
87
87
88
- $ r1 = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
88
+ $ r1 = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
89
89
$ r1 ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r1 ' ));
90
90
91
91
$ catalogue = new MessageCatalogue ('en ' , array ('domain1 ' => array ('foo ' => 'foo ' ), 'domain2 ' => array ('bar ' => 'bar ' )));
@@ -104,13 +104,13 @@ public function testAddCatalogue()
104
104
105
105
public function testAddFallbackCatalogue ()
106
106
{
107
- $ r = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
107
+ $ r = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
108
108
$ r ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r ' ));
109
109
110
- $ r1 = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
110
+ $ r1 = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
111
111
$ r1 ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r1 ' ));
112
112
113
- $ r2 = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
113
+ $ r2 = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
114
114
$ r2 ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r2 ' ));
115
115
116
116
$ catalogue = new MessageCatalogue ('fr_FR ' , array ('domain1 ' => array ('foo ' => 'foo ' ), 'domain2 ' => array ('bar ' => 'bar ' )));
@@ -169,11 +169,11 @@ public function testAddCatalogueWhenLocaleIsNotTheSameAsTheCurrentOne()
169
169
public function testGetAddResource ()
170
170
{
171
171
$ catalogue = new MessageCatalogue ('en ' );
172
- $ r = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
172
+ $ r = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
173
173
$ r ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r ' ));
174
174
$ catalogue ->addResource ($ r );
175
175
$ catalogue ->addResource ($ r );
176
- $ r1 = $ this ->getMock ('Symfony\Component\Config\Resource\ResourceInterface ' );
176
+ $ r1 = $ this ->getMockBuilder ('Symfony\Component\Config\Resource\ResourceInterface ' )-> getMock ( );
177
177
$ r1 ->expects ($ this ->any ())->method ('__toString ' )->will ($ this ->returnValue ('r1 ' ));
178
178
$ catalogue ->addResource ($ r1 );
179
179
0 commit comments