summaryrefslogtreecommitdiff
path: root/tests/php/phpt/base/001.phpt
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-18 23:35:35 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-18 23:35:35 +0100
commit778561e1739a4a7ef20e85b713b4790e6be225d3 (patch)
treed1ff42f6b6f8d6aa68f88319506aba91394aded0 /tests/php/phpt/base/001.phpt
parentbfaed88493de0a3ebd7f2619cb11291cd09252b1 (diff)
parentda5521c2c168edc48e7d2b5dd12305c9dec85b7b (diff)
Merge pull request #44 from valmat/unit-test
Unit tests
Diffstat (limited to 'tests/php/phpt/base/001.phpt')
-rw-r--r--tests/php/phpt/base/001.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/php/phpt/base/001.phpt b/tests/php/phpt/base/001.phpt
new file mode 100644
index 0000000..91175d7
--- /dev/null
+++ b/tests/php/phpt/base/001.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Test constructor & destructor
+--SKIPIF--
+<?php if (!extension_loaded("extention_for_tests")) print "skip"; ?>
+--FILEEOF--
+<?php
+
+new TestBaseClass\MyClass();
+
+
+echo PHP_EOL;
+--EXPECT--
+MyCustomClass::MyCustomClass()
+MyCustomClass::~MyCustomClass \ No newline at end of file