Permalink
Browse files

Jenkins fails with

> PHP Fatal error:  Cannot redeclare class ErrorDieTest in /var/lib/jenkins/workspace/Cache_Lite/tests/PearBug19422Test.php on line 30
> Fatal error: Cannot redeclare class ErrorDieTest in /var/lib/jenkins/workspace/Cache_Lite/tests/PearBug19422Test.php on line 30

I hope this fixes it.
  • Loading branch information...
1 parent 9868cb9 commit 06e8187e9d5638a5cd83527d15acfbb9e1f120a0 @coderbyheart coderbyheart committed May 21, 2012
Showing with 1 addition and 31 deletions.
  1. +1 −1 package.xml
  2. +0 −30 tests/PearBug19422Test.php
  3. 0 tests/{PearBug19422Test.phpt → pearbug19422.phpt}
View
@@ -72,7 +72,7 @@
<file baseinstalldir="/" name="/tests/pearbug13693.phpt" role="data"/>
<file baseinstalldir="/" name="/tests/pearbug18192.php" role="data"/>
<file baseinstalldir="/" name="/tests/pearbug18328.phpt" role="data"/>
- <file baseinstalldir="/" name="/tests/PearBug19422Test.phpt" role="data"/>
+ <file baseinstalldir="/" name="/tests/pearbug19422.phpt" role="data"/>
<file baseinstalldir="/" name="/tests/readme" role="data"/>
<file baseinstalldir="/" name="/tests/tmpdir.inc" role="data"/>
<file baseinstalldir="/" name="/tests/ErrorDieTest.php" role="data"/>
View
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * Test for CACHE_LITE_ERROR_DIE
- *
- * @package Cache_Lite
- * @category Caching
- * @version $Id$
- * @author Markus Tacker <tacker@php.net>
- */
-
-require_once 'tmpdir.inc';
-
-class ErrorDieTest extends PHPUnit_Framework_TestCase
-{
- public function testErrorDie()
- {
- exec('/usr/bin/env php ' . __DIR__ . DIRECTORY_SEPARATOR . 'errordie.php', $out);
- $message = join(PHP_EOL, $out);
- $message = str_replace(tmpDir(), '<cachedir>/', $message); // Remove system specific cache dir
- $expected = join(PHP_EOL, array(
- '==> First call (cache should be missed)',
- 'Cache Missed !',
- '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache_Lite : Unable to write cache file : <cachedir>/31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277',
- ));
-
- $this->assertEquals($message, $expected);
-
- }
-}
File renamed without changes.

0 comments on commit 06e8187

Please sign in to comment.