PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/php/prefix_runme.php

#
PHP | 18 lines | 10 code | 4 blank | 4 comment | 0 complexity | f3cfa5770916191a1a8be7802361d972 MD5 | raw file
 1<?php
 2
 3require "tests.php";
 4require "prefix.php";
 5
 6// No new functions
 7check::functions(array(foo_get_self));
 8// No new classes
 9check::classes(array(ProjectFoo));
10// now new vars
11check::globals(array());
12
13$f = new ProjectFoo();
14// This resulted in "Fatal error: Class 'Foo' not found"
15$f->get_self();
16
17check::done();
18?>