Skip to content

Instantly share code, notes, and snippets.

@marinaglancy
Created November 15, 2013 05:40
Show Gist options
  • Select an option

  • Save marinaglancy/7479656 to your computer and use it in GitHub Desktop.

Select an option

Save marinaglancy/7479656 to your computer and use it in GitHub Desktop.
Gist description…
There were 11 failures:
1) core_phpunit_basic_testcase::test_lineendings
Make sure all project files are checked out with unix line endings.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
a
b
C:\xampp\htdocs\x-int-master\lib\phpunit\tests\basic_test.php:135
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\basic_testcase.php:64
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_phpunit_basic_testcase lib\phpunit\tests\basic_test.php
2) core_csslib_testcase::test_bulk_processing
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
.test .one{margin:10px;border-width:0;color:#F00;background-color:#123;}
.test.one{margin:15px;border:1px solid #008000;}
#test .one{margin:20px;color:#000;}
#test #one{margin:25px;}
.test #one{margin:30px;}
#new.style{color:#000;}
@media print {
#test .one{margin:40px;color:#123456;}
#test #one{margin:45px;}
}
@media print,screen {
#test .one{color:#654321;}
}
C:\xampp\htdocs\x-int-master\lib\tests\csslib_test.php:781
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_csslib_testcase lib\tests\csslib_test.php
3) core_csslib_testcase::test_keyframe_css_animation
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
.test,
.testtwo{color:#888;}
.dndupload-arrow{width:56px;height:47px;position:absolute;animation:mymove 5s i
nfinite;-moz-animation:mymove 5s infinite;-webkit-animation:mymove 5s infinite;b
ackground:url('[[pix:theme|fp/dnd_arrow]]') no-repeat center;margin-left:-28px;}
@media print {
.test{background-color:#333;}
}
@keyframes mymove {0%{top:10px;}12%{top:40px;}30%{top:20px;}65%{top:35px;}100%{
top:9px;}}
@-moz-keyframes mymove {0%{top:10px;}12%{top:40px;}30%{top:20px;}65%{top:35px;}
100%{top:9px;}}
@-webkit-keyframes mymove {0%{top:10px;}12%{top:40px;}30%{top:20px;}65%{top:35p
x;}100%{top:9px;}}
C:\xampp\htdocs\x-int-master\lib\tests\csslib_test.php:972
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_csslib_testcase lib\tests\csslib_test.php
4) core_csvclass_testcase::test_csv_functions
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
fullname,"description of things",beer
"William B Stacey","<p>A field that contains ""double quotes""</p>",Asahi
"Phillip Jenkins","<p>This field has </p>
<p>Multiple lines</p>
<p>and also contains ""double quotes""</p>",Yebisu
C:\xampp\htdocs\x-int-master\lib\tests\csvclass_test.php:89
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_csvclass_testcase lib\tests\csvclass_test.php
5) core_filelib_testcase::test_curl_strip_double_headers
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
+HTTP/1.0 407 Proxy Authentication Required
+
+Server: squid/2.7.STABLE9
+
+Date: Thu, 08 Dec 2011 14:44:33 GMT
+
+Content-Type: text/html
+
+Content-Length: 1275
+
+X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
+
+Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
+
+X-Cache: MISS from homer.lancs.ac.uk
+
+X-Cache-Lookup: NONE from homer.lancs.ac.uk:3128
+
+Via: 1.0 homer.lancs.ac.uk:3128 (squid/2.7.STABLE9)
+
+Connection: close
+
+
+
HTTP/1.0 200 OK
Server: Apache
X-Lb-Nocache: true
Cache-Control: private, max-age=15
ETag: "4d69af5d8ba873ea9192c489e151bd7b"
Content-Type: text/html
Date: Thu, 08 Dec 2011 14:44:53 GMT
Set-Cookie: BBC-UID=c4de2e109c8df6a51de627cee11b214bd4fb6054a030222488317afb31b
343360MoodleBot/1.0; expires=Mon, 07-Dec-15 14:44:53 GMT; path=/; domain=bbc.co.
uk
X-Cache-Action: MISS
X-Cache-Age: 0
Vary: Cookie,X-Country,X-Ip-is-uk-combined,X-Ip-is-advertise-combined,X-Ip_is_u
k_combined,X-Ip_is_advertise_combined, X-GeoIP
X-Cache: MISS from ww
<html>...
C:\xampp\htdocs\x-int-master\lib\tests\filelib_test.php:619
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_filelib_testcase lib\tests\filelib_test.php
6) core_html2text_testcase::test_html_to_text_pre_parsing_problem
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
Consider the following function:
void FillMeUp(char* in_string) {
int i = 0;
while (in_string[i] != '\0') {
in_string[i] = 'X';
i++;
}
}
What would happen if a non-terminated string were input to this function?
C:\xampp\htdocs\x-int-master\lib\tests\html2text_test.php:180
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\basic_testcase.php:64
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_html2text_testcase lib\tests\html2text_test.php
7) core_htmlpurifier_testcase::test_allowobjectembed
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-<object width="425" height="350" data="http://www.youtube.com/v/AyPzM5WK8ys" ty
pe="application/x-shockwave-flash">
-<param name="allowScriptAccess" value="never" />
-<param name="allowNetworking" value="internal" />
-<param name="movie" value="http://www.youtube.com/v/AyPzM5WK8ys" />
-<param name="wmode" value="transparent" />
-<embed src="http://www.youtube.com/v/AyPzM5WK8ys" type="application/x-shockwave
-flash" wmode="transparent" width="425" height="350" allowscriptaccess="never" a
llownetworking="internal" />
-</object>hmmm
+<object width="425" height="350" data="http://www.youtube.com/v/AyPzM5WK8ys" ty
pe="application/x-shockwave-flash"><param name="allowScriptAccess" value="never"
/><param name="allowNetworking" value="internal" />
+<param name="movie" value="http://www.youtube.com/v/AyPzM5WK8ys" /><param name=
"wmode" value="transparent" /><embed src="http://www.youtube.com/v/AyPzM5WK8ys"
type="application/x-shockwave-flash" wmode="transparent" width="425" height="350
" allowscriptaccess="never" allownetworking="internal" /></object>hmmm
C:\xampp\htdocs\x-int-master\lib\tests\htmlpurifier_test.php:150
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\basic_testcase.php:64
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_htmlpurifier_testcase lib\tests\htmlpurifier_test.php
8) core_minify_testcase::test_js
Failed asserting that '
try {console.log('Error: Minimisation of JavaScript failed!');} catch (e) {}
// Error: Parse error: Unexpected token; token ( expected in file '[inline]' on
line 1
// Problem detected during JavaScript minimisation, please review the following
code
// =============================================================================
====
function hm{}' starts with "
try {console.log('Error: Minimisation of JavaScript failed!');} catch (e) {}".
C:\xampp\htdocs\x-int-master\lib\tests\minify_test.php:89
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_minify_testcase lib\tests\minify_test.php
9) core_rsslib_testcase::test_getfeed
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
#Warning: Strings contain different line endings!
by Martin Dougiamas.  <p></p><p><img src="http://code.google.com/opensource/gh
op/2007-8/images/ghoplogosm.jpg" align="right" style="margin:10px;" alt="ghoplog
osm.jpg" />After their very successful <a href="http://code.google.com/soc/2007/
">Summer of Code</a> program for University students, Google just announced thei
r new <a href="http://code.google.com/opensource/ghop/2007-8/">Highly Open Parti
cipation contest</a>, designed to encourage pre-University students to get invol
ved with open source projects via much smaller and diverse contributions.<br /><
br />
I'm very proud that Moodle has been selected as one of only <a href="http://cod
e.google.com/opensource/ghop/2007-8/projects.html">ten open source projects</a>
to take part in the inaugural year of this new contest.<br /><br />
We have a <a href="http://code.google.com/p/google-highly-open-participation-mo
odle/issues/list">long list of small tasks</a> prepared already for students, bu
t we would definitely like to see the Moodle community come up with more - so if
you have any ideas for things you want to see done, please <a href="http://code
.google.com/p/google-highly-open-participation-moodle/">send them to us</a>! Ju
st remember they can't take more than five days.<br /><br />
Google will pay students US$100 for every three tasks they successfully complet
e, plus send a cool T-shirt. There are also grand prizes including an all-expen
ses-paid trip to Google HQ in Mountain View, California. If you are (or know) a
young student with an interest in Moodle then give it a go! <br /><br />
You can find out all the details on the <a href="http://code.google.com/p/googl
e-highly-open-participation-moodle/">Moodle/GHOP contest site</a>.</p>
C:\xampp\htdocs\x-int-master\lib\tests\rsslib_test.php:87
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_rsslib_testcase lib\tests\rsslib_test.php
10) core_cache_testcase::test_session_cache_switch_user_application_mapping
Failed asserting that 'KSCdRlIX0A' is not equal to <string:KSCdRlIX0A>.
C:\xampp\htdocs\x-int-master\cache\tests\cache_test.php:1382
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_cache_testcase cache\tests\cache_test.php
11) core_cache_testcase::test_session_cache_switch_user_multiple
Failed asserting that 'wrlS36OIiM' is not equal to <string:wrlS36OIiM>.
C:\xampp\htdocs\x-int-master\cache\tests\cache_test.php:1447
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80
To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin\/../phpunit/phpunit/composer/bin/phpuni
t core_cache_testcase cache\tests\cache_test.php
FAILURES!
Tests: 2358, Assertions: 44453, Failures: 11, Skipped: 8.
c:\xampp\htdocs\x-int-master>
@marinaglancy
Copy link
Copy Markdown
Author

and sometimes this failure:

  1. core_cache_testcase::test_session_cache_switch_user_multiple
    Failed asserting that 'z7oCyYUh5S' is not equal to string:z7oCyYUh5S.

C:\xampp\htdocs\x-int-master\cache\tests\cache_test.php:1447
C:\xampp\htdocs\x-int-master\lib\phpunit\classes\advanced_testcase.php:80

To re-run:
c:\xampp\htdocs\x-int-master\vendor\bin/../phpunit/phpunit/composer/bin/phpuni
t core_cache_testcase cache\tests\cache_test.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment