@@ -29,7 +29,7 @@ class ComposerInformationTest extends \PHPUnit_Framework_TestCase
29
29
/**
30
30
* @var BufferIoFactory|\PHPUnit_Framework_MockObject_MockObject
31
31
*/
32
- private $ bufferIoFactory ;
32
+ private $ bufferIoFactoryMock ;
33
33
34
34
public function setUp ()
35
35
{
@@ -40,8 +40,8 @@ public function setUp()
40
40
->method ('getDirectoryRead ' )
41
41
->will ($ this ->returnValue ($ this ->directoryReadMock ));
42
42
$ this ->ioMock = $ this ->getMock ('Composer\IO\BufferIO ' , [], [], '' , false );
43
- $ this ->bufferIoFactory = $ this ->getMock ('Magento\Framework\Composer\BufferIoFactory ' , [], [], '' , false );
44
- $ this ->bufferIoFactory ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->ioMock );
43
+ $ this ->bufferIoFactoryMock = $ this ->getMock ('Magento\Framework\Composer\BufferIoFactory ' , [], [], '' , false );
44
+ $ this ->bufferIoFactoryMock ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->ioMock );
45
45
}
46
46
47
47
/**
@@ -70,7 +70,7 @@ private function setupDirectoryMock($composerDir)
70
70
public function testGetRequiredPhpVersion ($ composerDir )
71
71
{
72
72
$ this ->setupDirectoryMock ($ composerDir );
73
- $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactory );
73
+ $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactoryMock );
74
74
$ this ->assertEquals ("~5.5.0|~5.6.0 " , $ composerInfo ->getRequiredPhpVersion ());
75
75
}
76
76
@@ -82,7 +82,7 @@ public function testGetRequiredPhpVersion($composerDir)
82
82
public function testGetRequiredExtensions ($ composerDir )
83
83
{
84
84
$ this ->setupDirectoryMock ($ composerDir );
85
- $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactory );
85
+ $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactoryMock );
86
86
$ expectedExtensions = ['ctype ' , 'gd ' , 'spl ' , 'dom ' , 'simplexml ' , 'mcrypt ' , 'hash ' , 'curl ' , 'iconv ' , 'intl ' ];
87
87
88
88
$ actualRequiredExtensions = $ composerInfo ->getRequiredExtensions ();
@@ -99,7 +99,7 @@ public function testGetRequiredExtensions($composerDir)
99
99
public function testGetRootRequiredPackagesAndTypes ($ composerDir )
100
100
{
101
101
$ this ->setupDirectoryMock ($ composerDir );
102
- $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactory );
102
+ $ composerInfo = new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactoryMock );
103
103
104
104
$ requiredPackagesAndTypes = $ composerInfo ->getRootRequiredPackageTypesByName ();
105
105
@@ -128,6 +128,6 @@ public function getRequiredPhpVersionDataProvider()
128
128
public function testNoLock ()
129
129
{
130
130
$ this ->setupDirectoryMock ('notARealDirectory ' );
131
- new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactory );
131
+ new ComposerInformation ($ this ->filesystemMock , $ this ->bufferIoFactoryMock );
132
132
}
133
133
}
0 commit comments