com phpruntests: removing \n from end of file write: src/testcase/sections/rtExecutableSection.php

From: Date: Sun, 17 May 2009 10:37:41 +0000
Subject: com phpruntests: removing \n from end of file write: src/testcase/sections/rtExecutableSection.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66453@lists.php.net to get a copy of this message
Commit: 8d32f623b834c8df33107c87a84d519b2c1bd7dc Author: Zoe Slattery <zoe@php.net> Sun, 17 May 2009 10:37:41 +0000 Parents: 52f744a947d238fc3652da4633d209d8bbd8e6e5 Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=8d32f623b834c8df33107c87a84d519b2c1bd7dc Log: removing \n from end of file write Changed paths: M src/testcase/sections/rtExecutableSection.php Diff: diff --git a/src/testcase/sections/rtExecutableSection.php b/src/testcase/sections/rtExecutableSection.php index e145321..a9238e6 100644 --- a/src/testcase/sections/rtExecutableSection.php +++ b/src/testcase/sections/rtExecutableSection.php @@ -7,22 +7,22 @@ abstract class rtExecutableSection extends rtSection protected $fileName; protected $output; protected $status; - + protected function init() { } protected function writeExecutableFile() - { - $contentsAsString = implode("\n", $this->sectionContents) ."\n"; - file_put_contents($this->fileName, (binary) $contentsAsString); + { + $contentsAsString = implode("\n", $this->sectionContents); + file_put_contents($this->fileName, (binary) $contentsAsString); } - + public function getFileName() { return $this->fileName; - } - + } + public function deleteFile() { @unlink($this->fileName); @@ -32,7 +32,7 @@ abstract class rtExecutableSection extends rtSection { return $this->output; } - + abstract function run(rtPhpTest $testcase, rtRuntestsConfiguration $runConfiguration); } ?>

« previous php.qa (#66453) next »