mirror of
https://github.com/php-win-ext/php-rar.git
synced 2026-03-24 13:02:06 +01:00
Fixed test #34. git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@292692 c90b9560-bf6c-de11-be94-00142212c4b1
17 lines
447 B
PHP
17 lines
447 B
PHP
--TEST--
|
|
RarException::(set/is)UsingExceptions() test
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded("rar")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
echo "Initial state: " . (RarException::isUsingExceptions()?'yes':'no').".\n";
|
|
RarException::setUsingExceptions(true);
|
|
echo "State change done.\n";
|
|
echo "Final state: " . (RarException::isUsingExceptions()?'yes':'no').".\n";
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
Initial state: no.
|
|
State change done.
|
|
Final state: yes.
|
|
Done.
|