Don't override parent property

This commit is contained in:
Pierre Rudloff 2017-10-26 11:02:14 +02:00
parent 6e8efd1b82
commit 2e80129c63
1 changed files with 7 additions and 7 deletions

View File

@ -18,14 +18,14 @@ class LocaleTest extends TestCase
*
* @var Locale
*/
private $locale;
private $localeObject;
/**
* Prepare tests.
*/
protected function setUp()
{
$this->locale = new Locale('fr_FR');
$this->localeObject = new Locale('fr_FR');
}
/**
@ -35,7 +35,7 @@ class LocaleTest extends TestCase
*/
public function testGetToString()
{
$this->assertEquals('fr_FR', $this->locale->__toString());
$this->assertEquals('fr_FR', $this->localeObject->__toString());
}
/**
@ -45,7 +45,7 @@ class LocaleTest extends TestCase
*/
public function testGetFullName()
{
$this->assertEquals('français (France)', $this->locale->getFullName());
$this->assertEquals('français (France)', $this->localeObject->getFullName());
}
/**
@ -55,7 +55,7 @@ class LocaleTest extends TestCase
*/
public function testGetIso15897()
{
$this->assertEquals('fr_FR', $this->locale->getIso15897());
$this->assertEquals('fr_FR', $this->localeObject->getIso15897());
}
/**
@ -65,7 +65,7 @@ class LocaleTest extends TestCase
*/
public function testGetBcp47()
{
$this->assertEquals('fr-FR', $this->locale->getBcp47());
$this->assertEquals('fr-FR', $this->localeObject->getBcp47());
}
/**
@ -75,6 +75,6 @@ class LocaleTest extends TestCase
*/
public function testGetIso3166()
{
$this->assertEquals('fr', $this->locale->getIso3166());
$this->assertEquals('fr', $this->localeObject->getIso3166());
}
}