Skip to content
Snippets Groups Projects
Commit b2b353c0 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Renamed test class property

parent 1a55b3e7
No related merge requests found
......@@ -34,7 +34,7 @@ class FinderTest extends \PHPUnit_Framework_TestCase
/**
* @var Finder
*/
protected $fixture;
protected $classUnderTesting;
/**
* @var SymfonyFinderFactory|\PHPUnit_Framework_MockObject_MockObject
......@@ -68,13 +68,13 @@ class FinderTest extends \PHPUnit_Framework_TestCase
'',
false
);
$this->fixture = new Finder($this->symfonyFinderFactoryMock, $this->standardsFactoryMock);
$this->classUnderTesting = new Finder($this->symfonyFinderFactoryMock, $this->standardsFactoryMock);
}
protected function tearDown()
{
parent::tearDown();
unset($this->fixture);
unset($this->classUnderTesting);
unset($this->standardsFactoryMock);
}
......@@ -114,6 +114,6 @@ class FinderTest extends \PHPUnit_Framework_TestCase
->expects($this->once())
->method('create')
->with($expected);
$this->fixture->in($path);
$this->classUnderTesting->in($path);
}
}
......@@ -31,18 +31,18 @@ class FactoryTest extends \PHPUnit_Framework_TestCase
/**
* @var Factory
*/
protected $fixture;
protected $classUnderTesting;
protected function setUp()
{
parent::setUp();
$this->fixture = new Factory();
$this->classUnderTesting = new Factory();
}
protected function tearDown()
{
parent::tearDown();
unset($this->fixture);
unset($this->classUnderTesting);
}
public function testCreateStandard()
......@@ -51,7 +51,7 @@ class FactoryTest extends \PHPUnit_Framework_TestCase
DIRECTORY_SEPARATOR,
array(__DIR__, '..', '..', '..', '..', 'Fixtures', 'Standards', 'Standard1')
);
$standard = $this->fixture->create($path);
$standard = $this->classUnderTesting->create($path);
$this->assertInstanceOf('Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Standard', $standard);
}
......
......@@ -32,7 +32,7 @@ class StandardsFactoryTest extends \PHPUnit_Framework_TestCase
/**
* @var StandardsFactory
*/
protected $fixture;
protected $classUnderTesting;
/**
* @var StandardFactory|\PHPUnit_Framework_MockObject_MockObject
......@@ -57,14 +57,14 @@ class StandardsFactoryTest extends \PHPUnit_Framework_TestCase
)
);
$this->fixture = new StandardsFactory($this->standardFactoryMock);
$this->classUnderTesting = new StandardsFactory($this->standardFactoryMock);
}
protected function tearDown()
{
parent::tearDown();
unset($this->standardFactoryMock);
unset($this->fixture);
unset($this->classUnderTesting);
}
public function testCreateStandard()
......@@ -79,7 +79,7 @@ class StandardsFactoryTest extends \PHPUnit_Framework_TestCase
->method('create')
->withConsecutive($paths);
$standards = $this->fixture->create($paths);
$standards = $this->classUnderTesting->create($paths);
$this->assertInstanceOf('Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards', $standards);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment