$this->config->setValue('foo', 'moo');
$this->assertAttributeEquals(array('foo' => 'moo'), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
- $this->assertEquals(<<<EOL
-<?php
-\$CONFIG = array (
- 'foo' => 'moo',
-);
-EOL
- , $content);
+ $expected = "<?php\n\$CONFIG = array (\n 'foo' => 'moo',\n);\n";
+ $this->assertEquals($expected, $content);
$this->config->setValue('bar', 'red');
$this->assertAttributeEquals(array('foo' => 'moo', 'bar' => 'red'), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
- $this->assertEquals(<<<EOL
-<?php
-\$CONFIG = array (
- 'foo' => 'moo',
- 'bar' => 'red',
-);
-EOL
- , $content);
+ $expected = "<?php\n\$CONFIG = array (\n 'foo' => 'moo',\n 'bar' => 'red',\n);\n";
+ $this->assertEquals($expected, $content);
}
public function testDeleteKey() {
$this->config->deleteKey('foo');
$this->assertAttributeEquals(array(), 'cache', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
- $this->assertEquals(<<<EOL
-<?php
-\$CONFIG = array (
-);
-EOL
- , $content);
+ $expected = "<?php\n\$CONFIG = array (\n);\n";
+ $this->assertEquals($expected, $content);
}
public function testSavingDebugMode() {
$this->assertAttributeEquals(array(), 'cache', $this->config);
$this->assertAttributeEquals(true, 'debugMode', $this->config);
$content = file_get_contents(self::CONFIG_FILE);
- $this->assertEquals(<<<EOL
-<?php
-define('DEBUG',true);
-\$CONFIG = array (
-);
-EOL
- , $content);
+ $expected = "<?php\ndefine('DEBUG',true);\n\$CONFIG = array (\n);\n";
+ $this->assertEquals($expected, $content);
}
/**