~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to question/type/shortanswer/tests/question_test.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
                '0', '*0*', false));
133
133
    }
134
134
 
 
135
    public function test_compare_string_with_wildcard_many_stars() {
 
136
        // Test the classic PHP problem case with '0'.
 
137
        $this->assertTrue((bool)qtype_shortanswer_question::compare_string_with_wildcard(
 
138
                '<em></em>', '***********************************<em>***********************************</em>', false));
 
139
    }
 
140
 
135
141
    public function test_is_complete_response() {
136
142
        $question = test_question_maker::make_question('shortanswer');
137
143