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

« back to all changes in this revision

Viewing changes to Examples/test-suite/php4/ignore_parameter_runme.php4

  • 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
 
// Sample test file
3
 
 
4
 
require "tests.php4";
5
 
require "ignore_parameter.php";
6
 
 
7
 
// No new functions
8
 
check::functions(array(jaguar,lotus,tvr,ferrari));
9
 
// No new classes
10
 
check::classes(array(sportscars,minicooper,morrisminor,fordanglia,austinallegro));
11
 
// now new vars
12
 
check::globals(array());
13
 
 
14
 
check::equal(jaguar(2,3.4),"hello",'jaguar(2,3.4)=="hello"');
15
 
check::equal(lotus("eek",3.4),101,'lotus("eek",3.4)==101');
16
 
check::equal(tvr("eek",2),8.8,'tvr("eek",2)==8.8');
17
 
check::equal(ferrari(),101,'ferrari(2)==101');
18
 
 
19
 
$sc=new sportscars();
20
 
check::classname("sportscars",$sc);
21
 
check::equal($sc->daimler(2,3.4),"hello",'$sc->daimler(2,3.4)=="hello"');
22
 
check::equal($sc->astonmartin("eek",3.4),101,'$sc->mastonmartin("eek",3.4)==101');
23
 
check::equal($sc->bugatti("eek",2),8.8,'$sc->bugatti("eek",2)==8.8');
24
 
check::equal($sc->lamborghini(),101,'$sc->lamborghini(2)==101');
25
 
 
26
 
$mc=new minicooper(2,3.4);
27
 
check::classname("minicooper",$mc);
28
 
 
29
 
$mm=new morrisminor("eek",3.4);
30
 
check::classname("morrisminor",$mm);
31
 
 
32
 
$fa=new fordanglia("eek",2);
33
 
check::classname("fordanglia",$fa);
34
 
 
35
 
$aa=new austinallegro();
36
 
check::classname("austinallegro",$aa);
37
 
 
38
 
check::done();
39
 
?>