Commit:    cb0c13ead222dbbc76a1d763dbb107c701749a93
Author:    Matt Ficken <v-maf...@microsoft.com>         Tue, 24 Sep 2013 
11:16:13 -0700
Parents:   75f37baaa571158b6f43f504af9caaf76652bec2
Branches:  master

Link:       
http://git.php.net/?p=pftt2.git;a=commitdiff;h=cb0c13ead222dbbc76a1d763dbb107c701749a93

Log:
Anatol: updating TEST_BIT8 for mbstring PHPT failure

Changed paths:
  M  conf/symfony.groovy
  M  conf/zend.groovy
  M  src/com/mostc/pftt/model/core/PhptTestCase.java


Diff:
diff --git a/conf/symfony.groovy b/conf/symfony.groovy
index fb80097..60c8afc 100644
--- a/conf/symfony.groovy
+++ b/conf/symfony.groovy
@@ -20,14 +20,12 @@ class SymfonyPhpUnitTestPack extends 
OptionalDatabasePhpUnitSourceTestPack {
        }
        
        @Override
-       protected String getSourceRoot(AHost host) {
+       protected String getSourceRoot(ConsoleManager cm, AHost host) {
+               ensureAppDecompressed(cm, host, "symfony-standard.7z")
+                               
                return host.getPfttDir()+"/cache/working/symfony-standard";
        }
-       @Override
-       protected Object clone() throws CloneNotSupportedException {
-               // TODO Auto-generated method stub
-               return super.clone();
-       }
+       
        public String[][] getNonThreadSafeTestFileNames() {
                return [
                        ["Symfony/Component/HttpFoundation"],
@@ -39,6 +37,7 @@ class SymfonyPhpUnitTestPack extends 
OptionalDatabasePhpUnitSourceTestPack {
  
        @Override
        protected boolean openAfterInstall(ConsoleManager cm, AHost host) 
throws Exception {
+               
                // 1. do initial install (if not done already)
                if (!host.exists(getRoot()+"/vendor")) {
                        // TODO modified require_once __DIR__ in 
C:\php-sdk\PFTT\current\cache\working\symfony-standard\vendor\symfony\symfony\vendor\symfony\symfony\autoload.php.dist
@@ -63,7 +62,7 @@ class SymfonyPhpUnitTestPack extends 
OptionalDatabasePhpUnitSourceTestPack {
                                                        AHost.HALF_HOUR,
                                                        env,
                                                        // where cwd is 
symfony-standard
-                                                       getSourceRoot(host)
+                                                       getSourceRoot(cm, host)
                                                );
                                }
                        } else {
diff --git a/conf/zend.groovy b/conf/zend.groovy
index ba8b1e6..ef8e0ab 100644
--- a/conf/zend.groovy
+++ b/conf/zend.groovy
@@ -11,7 +11,7 @@ class ZendFrameworkPhpUnitTestPack extends 
PhpUnitSourceTestPack {
        }
        
        @Override
-       protected String getSourceRoot(AHost host) {
+       protected String getSourceRoot(ConsoleManager cm, AHost host) {
                return host.getPfttDir()+"/cache/working/zend";
        }
        
diff --git a/src/com/mostc/pftt/model/core/PhptTestCase.java 
b/src/com/mostc/pftt/model/core/PhptTestCase.java
index cc06a13..63e65cc 100644
--- a/src/com/mostc/pftt/model/core/PhptTestCase.java
+++ b/src/com/mostc/pftt/model/core/PhptTestCase.java
@@ -945,6 +945,9 @@ public class PhptTestCase extends TestCase {
                return isNon8BitCharset(getName());
        }
        
+       // SOMEDAY put this in a test-pack configuration or default 
configuration
+       //         so that info specific to a specific test-pack isn't 
hard-coded here, instead configure it.
+       //         makes it easy to change, makes it more flexible for 
different test-packs.
        public static boolean isNon8BitCharset(String test_name) {
                // XXX use a Trie to speedup checking
                for ( String tc : TESTS_BIT8) {
@@ -1016,6 +1019,7 @@ public class PhptTestCase extends TestCase {
                        
"ext/standard/tests/general_functions/parse_ini_basic.phpt" // Apache
                };
        static final String[] TESTS_BIT8 = new String[] {
+                       "ext/mbstring/tests/mb_decode_numericentity.phpt",
                        "ext/intl/tests/locale_get_display_language.phpt",
                        "ext/intl/tests/locale_get_display_name2.phpt",
                        "ext/intl/tests/locale_get_display_region2.phpt",


--
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to