Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed accessor setDoubleQuoteStrings

  • Loading branch information...
commit 4073dd62cf4ee29b40c13bb7d48ef40310d05075 1 parent 93b00f9
pce authored
Showing with 6 additions and 5 deletions.
  1. +4 −3 Config/Lite.php
  2. +2 −2 tests/Config_LiteTest.php
View
7 Config/Lite.php
@@ -77,7 +77,8 @@ class Config_Lite implements ArrayAccess, IteratorAggregate, Countable
protected $processSections = true;
/**
- * doubleQuoteStrings - if true, strings will be doubleQuoted
+ * doubleQuoteStrings - if true,
+ * writes ini files with doubleQuoted strings
*
* @var bool
*/
@@ -88,7 +89,7 @@ class Config_Lite implements ArrayAccess, IteratorAggregate, Countable
* or already setted filename.
*
* this method uses the native PHP function
- * parse_ini_file behind the scenes.
+ * parse_ini_file behind the scenes.
*
* @param string $filename Filename
*
@@ -680,7 +681,7 @@ public function setProcessSections($processSections)
*
* @return $this
*/
- public function setDoubleQuote($doubleQuoteStrings)
+ public function setDoubleQuoteStrings($doubleQuoteStrings)
{
$this->doubleQuoteStrings = $doubleQuoteStrings;
return $this;
View
4 tests/Config_LiteTest.php
@@ -362,7 +362,7 @@ public function testDoNotProcessSectionsGet()
public function testDoNotDoubleQuoteWrite()
{
- $this->config->setDoubleQuote(false)->read($this->filename);
+ $this->config->setDoubleQuoteStrings(false)->read($this->filename);
$this->config->setFilename($this->filename);
$this->config->setString('notquoted', 'nodouble', 'String');
$this->config->sync();
@@ -370,7 +370,7 @@ public function testDoNotDoubleQuoteWrite()
$this->config->getString('notquoted', 'nodouble')
);
// back to default
- $this->config->setDoubleQuote(true);
+ $this->config->setDoubleQuoteStrings(false);
}
public function testGetFilename()
Please sign in to comment.
Something went wrong with that request. Please try again.