com phpruntests: oops: tests/configuration/rtExternalToolTest.php tests/configuration/rtMemoryToolTest.php
| From: | David Soria Parra | Date: | Mon, 03 Aug 2009 09:48:53 +0000 |
| Subject: | com phpruntests: oops: tests/configuration/rtExternalToolTest.php tests/configuration/rtMemoryToolTest.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66308@lists.php.net to get a copy of this message | ||
Commit: 5bd4856cf4ff101c17e1d5143bcb799c975b4bfc
Author: Zoe Slattery <zoe@php.net> Mon, 3 Aug 2009 09:48:53 +0000
Parents: b188fce78dfb55bbedf2fd4682a011cc27015158
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=5bd4856cf4ff101c17e1d5143bcb799c975b4bfc
Log:
oops
Changed paths:
D tests/configuration/rtExternalToolTest.php
A tests/configuration/rtMemoryToolTest.php
Diff:
diff --git a/tests/configuration/rtExternalToolTest.php b/tests/configuration/rtExternalToolTest.php
deleted file mode 100644
index b840156..0000000
--- a/tests/configuration/rtExternalToolTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__) . '../../../src/rtAutoload.php';
-
-class rtExternalToolTest extends PHPUnit_Framework_TestCase
-{
-
-
- public function testCreate()
- {
-
- $config = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-m', 'test.phpt'));
- $this->externalTool = rtExternalTool::getInstance($config);
- $this->externalTool->checkAvailable($config);
- $this->externalTool->init($config);
-
- $string = substr($this->externalTool->getCommand(), 0, 48);
-
- $this->assertEquals('valgrind -q --tool=memcheck --trace-children=yes',
$string);
-
- }
-
- public function testCreate2()
- {
-
- $config = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-m', '--mopts', '"blah blah"', 'test.phpt'));
- $this->externalTool = rtExternalTool::getInstance($config);
- $this->externalTool->checkAvailable($config);
- $this->externalTool->init($config);
-
- $string = substr($this->externalTool->getCommand(), 0, 58);
- $this->assertEquals('valgrind -q --tool=memcheck --trace-children=yes blah
blah', $string);
-
- }
-
-}
-?>
-
diff --git a/tests/configuration/rtMemoryToolTest.php b/tests/configuration/rtMemoryToolTest.php
new file mode 100644
index 0000000..2f0cb32
--- /dev/null
+++ b/tests/configuration/rtMemoryToolTest.php
@@ -0,0 +1,38 @@
+<?php
+require_once 'PHPUnit/Framework.php';
+require_once dirname(__FILE__) . '../../../src/rtAutoload.php';
+
+class rtMemoryToolTest extends PHPUnit_Framework_TestCase
+{
+
+
+ public function testCreate()
+ {
+
+ $config = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-m', 'test.phpt'));
+ $this->memoryTool = rtMemoryTool::getInstance($config);
+ $this->memoryTool->checkAvailable($config);
+ $this->memoryTool->init($config);
+
+ $string = substr($this->memoryTool->getCommand(), 0, 48);
+
+ $this->assertEquals('valgrind -q --tool=memcheck --trace-children=yes',
$string);
+
+ }
+
+ public function testCreate2()
+ {
+
+ $config = rtRuntestsConfiguration::getInstance(array('run-tests.php',
'-m', '--mopts', '"blah blah"', 'test.phpt'));
+ $this->memoryTool = rtMemoryTool::getInstance($config);
+ $this->memoryTool->checkAvailable($config);
+ $this->memoryTool->init($config);
+
+ $string = substr($this->memoryTool->getCommand(), 0, 58);
+ $this->assertEquals('valgrind -q --tool=memcheck --trace-children=yes blah
blah', $string);
+
+ }
+
+}
+?>
+