~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Examples/test-suite/php/director_unroll_runme.php

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
require "tests.php";
 
4
require "director_unroll.php";
 
5
 
 
6
// No new functions
 
7
check::functions(array(foo_ping,foo_pong));
 
8
// No new classes
 
9
check::classes(array(Foo,Bar));
 
10
// now new vars
 
11
check::globals(array(bar));
 
12
 
 
13
class MyFoo extends Foo {
 
14
  function ping() {
 
15
    return "MyFoo::ping()";
 
16
  }
 
17
}
 
18
 
 
19
$a = new MyFoo();
 
20
 
 
21
$b = new Bar();
 
22
 
 
23
$b->set($a);
 
24
$c = $b->get();
 
25
 
 
26
check::equal($a->this, $c->this, "this failed");
 
27
 
 
28
check::done();
 
29
?>