~ubuntu-branches/ubuntu/utopic/kdevelop-php/utopic

« back to all changes in this revision

Viewing changes to duchain/tests/duchaintestbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-03-14 10:19:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100314101934-d24i8t1niai087ul
Tags: 1.0.0~beta4-1
New upstream release. (Closes: #573811)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "../builders/declarationbuilder.h"
35
35
#include "../builders/usebuilder.h"
36
36
#include "../helper.h"
 
37
#include <completion/codemodelitem.h>
37
38
 
38
39
using namespace KTextEditor;
39
40
using namespace KDevelop;
55
56
    //handling of the internal functions file
56
57
    //see e.g. testDeclarationReturnTypeDocBlock
57
58
    QByteArray content("<?php "
 
59
                        "class Exception {} "
58
60
                        //test start
59
61
                        "/** @return Exception **/ function should_return_exception() {}\n"
60
62
                       "class internal_test_class {/** @return Exception **/ function should_return_exception() {}}\n"
61
63
                        // test end
62
64
                       "function define() {} function substr() {} class stdClass {}\n"
63
65
                       "/**\n * @superglobal\n **/\n$_GET = array();\n"
64
 
                       "class Exception {} interface testInterface {}\n");
 
66
                       "interface testInterface {}\n");
65
67
    content.append("interface Iterator { function rewind(); function current(); function key(); function next(); function valid(); } ");
66
68
    parseAdditionalFile(internalFunctionFile(), content);
67
69
}