com phpruntests: tidy: tests/testcase/sections/executablesections/rtFileSectionTest.php
tests/testcase/sections/executablesections/rtSkipIfSectionTest.php

From: Date: Sun, 26 Apr 2009 07:12:58 +0000
Subject: com phpruntests: tidy: tests/testcase/sections/executablesections/rtFileSectionTest.php
tests/testcase/sections/executablesections/rtSkipIfSectionTest.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66519@lists.php.net to get a copy of this message
Commit: 2e850dbf5692889f257a779bd66e6f6f63515bec Author: Zoe Slattery <zoe@php.net> Sun, 26 Apr 2009 07:12:58 +0000 Parents: 764fd77a5e2adb0f4b8bfd76c9654bc073e35683 Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=2e850dbf5692889f257a779bd66e6f6f63515bec Log: tidy Changed paths: M tests/testcase/sections/executablesections/rtFileSectionTest.php M tests/testcase/sections/executablesections/rtSkipIfSectionTest.php Diff: diff --git a/tests/testcase/sections/executablesections/rtFileSectionTest.php b/tests/testcase/sections/executablesections/rtFileSectionTest.php index 86e73ed..ec37dc9 100644 --- a/tests/testcase/sections/executablesections/rtFileSectionTest.php +++ b/tests/testcase/sections/executablesections/rtFileSectionTest.php @@ -3,12 +3,12 @@ require_once 'PHPUnit/Framework.php'; require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php'; -class rtSkipIfSectionTest extends PHPUnit_Framework_TestCase +class rtFileSectionTest extends PHPUnit_Framework_TestCase { public function testCreateInstance() { - $skipifSection = new rtSkipIfSection('SKIPIF', array('<?php', 'echo "hello world";', '?>')); - $code = $skipifSection->getContents(); + $fileSection = new rtFileSection('FILE', array('<?php', 'echo "hello world";', '?>')); + $code = $fileSection->getContents(); $this->assertEquals('<?php', $code[0]); } diff --git a/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php b/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php index ec37dc9..da3cb55 100644 --- a/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php +++ b/tests/testcase/sections/executablesections/rtSkipIfSectionTest.php @@ -3,12 +3,12 @@ require_once 'PHPUnit/Framework.php'; require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php'; -class rtFileSectionTest extends PHPUnit_Framework_TestCase +class rtSkipifSectionTest extends PHPUnit_Framework_TestCase { public function testCreateInstance() { - $fileSection = new rtFileSection('FILE', array('<?php', 'echo "hello world";', '?>')); - $code = $fileSection->getContents(); + $skipifSection = new rtSkipIfSection('SKIPIF', array('<?php', 'echo "hello world";', '?>')); + $code = $skipifSection->getContents(); $this->assertEquals('<?php', $code[0]); }

« previous php.qa (#66519) next »