SILENT KILLERPanel

Current Path: > > opt > cloudlinux > alt-php55 > root > usr > share > > pear > test > File_MARC > tests


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/alt-php55/root/usr/share//pear/test/File_MARC/tests

NameTypeSizeLast ModifiedActions
bad_example.mrc File 1853 bytes December 02 2021 08:16:11.
bad_example.xml File 7280 bytes December 02 2021 08:16:11.
bigarchive.xml File 3514 bytes December 02 2021 08:16:11.
camel.mrc File 6990 bytes December 02 2021 08:16:11.
example.mrc File 1850 bytes December 02 2021 08:16:11.
marc_001.phpt File 2490 bytes December 02 2021 08:16:11.
marc_002.phpt File 4690 bytes December 02 2021 08:16:11.
marc_003.phpt File 1367 bytes December 02 2021 08:16:11.
marc_004.phpt File 9556 bytes December 02 2021 08:16:11.
marc_005.phpt File 3486 bytes December 02 2021 08:16:11.
marc_006.phpt File 1298 bytes December 02 2021 08:16:11.
marc_007.phpt File 1191 bytes December 02 2021 08:16:11.
marc_008.phpt File 461 bytes December 02 2021 08:16:11.
marc_009.phpt File 1525 bytes December 02 2021 08:16:11.
marc_010.phpt File 4687 bytes December 02 2021 08:16:11.
marc_011.phpt File 2738 bytes December 02 2021 08:16:11.
marc_012.phpt File 1769 bytes December 02 2021 08:16:11.
marc_013.phpt File 8506 bytes December 02 2021 08:16:11.
marc_014.phpt File 3554 bytes December 02 2021 08:16:11.
marc_015.phpt File 4859 bytes December 02 2021 08:16:11.
marc_016.phpt File 12644 bytes December 02 2021 08:16:11.
marc_017.phpt File 4147 bytes December 02 2021 08:16:11.
marc_018.phpt File 3160 bytes December 02 2021 08:16:11.
marc_019.phpt File 4120 bytes December 02 2021 08:16:11.
marc_020.phpt File 3946 bytes December 02 2021 08:16:11.
marc_021.phpt File 4859 bytes December 02 2021 08:16:11.
marc_022.phpt File 10489 bytes December 02 2021 08:16:11.
marc_023.phpt File 523 bytes December 02 2021 08:16:11.
marc_16783.phpt File 2473 bytes December 02 2021 08:16:11.
marc_field_001.phpt File 878 bytes December 02 2021 08:16:11.
marc_field_002.phpt File 542 bytes December 02 2021 08:16:11.
marc_field_003.phpt File 1677 bytes December 02 2021 08:16:11.
marc_field_004.phpt File 920 bytes December 02 2021 08:16:11.
marc_field_005.phpt File 998 bytes December 02 2021 08:16:11.
marc_field_21246.phpt File 795 bytes December 02 2021 08:16:11.
marc_lint_001.phpt File 4524 bytes December 02 2021 08:16:11.
marc_lint_002.phpt File 2365 bytes December 02 2021 08:16:11.
marc_lint_003.phpt File 2801 bytes December 02 2021 08:16:11.
marc_lint_004.phpt File 5198 bytes December 02 2021 08:16:11.
marc_lint_005.phpt File 2699 bytes December 02 2021 08:16:11.
marc_record_001.phpt File 544 bytes December 02 2021 08:16:11.
marc_subfield_001.phpt File 716 bytes December 02 2021 08:16:11.
marc_subfield_002.phpt File 1052 bytes December 02 2021 08:16:11.
marc_xml_001.phpt File 7628 bytes December 02 2021 08:16:11.
marc_xml_002.phpt File 3605 bytes December 02 2021 08:16:11.
marc_xml_003.phpt File 1483 bytes December 02 2021 08:16:11.
marc_xml_004.phpt File 2813 bytes December 02 2021 08:16:11.
marc_xml_005.phpt File 1501 bytes December 02 2021 08:16:11.
marc_xml_006.phpt File 1441 bytes December 02 2021 08:16:11.
marc_xml_007.phpt File 972 bytes December 02 2021 08:16:11.
marc_xml_008.phpt File 12660 bytes December 02 2021 08:16:11.
marc_xml_009.phpt File 1099 bytes December 02 2021 08:16:11.
marc_xml_16642.phpt File 916 bytes December 02 2021 08:16:11.
marc_xml_namespace.phpt File 706 bytes December 02 2021 08:16:11.
marc_xml_namespace_prefix.phpt File 685 bytes December 02 2021 08:16:11.
marc_xml_rsinger.phpt File 2499 bytes December 02 2021 08:16:11.
music.mrc File 4270 bytes December 02 2021 08:16:11.
music.xml File 11653 bytes December 02 2021 08:16:11.
namespace.xml File 8089 bytes December 02 2021 08:16:11.
onerecord.xml File 3308 bytes December 02 2021 08:16:11.
sandburg.mrc File 1142 bytes December 02 2021 08:16:11.
sandburg.xml File 3337 bytes December 02 2021 08:16:11.
skipif.inc File 177 bytes December 02 2021 08:16:11.
xmlescape.mrc File 728 bytes December 02 2021 08:16:11.

Reading File: //opt/cloudlinux/alt-php55/root/usr/share//pear/test/File_MARC/tests/marc_subfield_002.phpt

--TEST--
marc_subfield_002: Exercise setter and isEmpty() methods for File_MARC_Subfield class
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$dir = dirname(__FILE__);
require 'File/MARC.php';

function testEmpty($testSubfield) {
  print "Subfield is ";
  if ($testSubfield->isEmpty()) {
    print "empty.\n";
  }
  else {
    print "not empty.\n";
  }

}

$subfield = new File_MARC_Subfield('a', 'wasssup');

// test isEmpty() scenarios
testEmpty($subfield);

$subfield->setData(null);
testEmpty($subfield);

$subfield->setData('just hangin');
testEmpty($subfield);

// test setCode() scenarios
print "\nSet code to 'z'...";
if ($subfield->setCode('z')) {
  print "\n";
  print $subfield;
}

print "\nSet code to ''...";
if ($subfield->setCode('')) {
  print "\n";
  print $subfield;
}

print "\nSet code to null...";
if ($subfield->setCode(null)) {
  print "\n";
  print $subfield;
}

?>
--EXPECT--
Subfield is not empty.
Subfield is empty.
Subfield is not empty.

Set code to 'z'...
[z]: just hangin
Set code to ''...
Set code to null...

SILENT KILLER Tool