diff options
author | valmat <ufabiz@gmail.com> | 2014-06-11 19:34:40 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-06-11 19:34:40 +0600 |
commit | 4f3769855dd65a8ef0b647c7e98860b8aa747c26 (patch) | |
tree | be9c261e7b6284c77a5ef19d125b25f2b37f4dbd /tests/php/phpt/variables | |
parent | e350c8f1b33d7c6c605f5450e8cf901cc3e5e1c4 (diff) |
done
Diffstat (limited to 'tests/php/phpt/variables')
-rw-r--r-- | tests/php/phpt/variables/028-compare1.phpt | 53 | ||||
-rw-r--r-- | tests/php/phpt/variables/029-compare2.phpt | 74 |
2 files changed, 127 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/028-compare1.phpt b/tests/php/phpt/variables/028-compare1.phpt new file mode 100644 index 0000000..2885fe8 --- /dev/null +++ b/tests/php/phpt/variables/028-compare1.phpt @@ -0,0 +1,53 @@ +--TEST-- +Test bool Value::operator==(const Value &value) const +--SKIPIF-- +<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php + +TestVariables\test_compare1(); + +--EXPECT-- +true: +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +false: +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +Compare array: +0 +0 +0 +1 +0 +Compare NULL: +0 +0 +0 +1 +1 +1
\ No newline at end of file diff --git a/tests/php/phpt/variables/029-compare2.phpt b/tests/php/phpt/variables/029-compare2.phpt new file mode 100644 index 0000000..333ede1 --- /dev/null +++ b/tests/php/phpt/variables/029-compare2.phpt @@ -0,0 +1,74 @@ +--TEST-- +Test bool Value::operator< (const Value &value) const +--SKIPIF-- +<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php + +TestVariables\test_compare2(); + +--EXPECT-- +false: +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +true: +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +false: +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +Compare array: +1 +1 +0 +1 +0 +1 +Compare NULL: +0 +0 +0 +1 +1 +1 +0 +0 +0
\ No newline at end of file |