Home
last modified time | relevance | path

Searched refs:actual (Results 126 – 150 of 263) sorted by path

1234567891011

/plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Util/
H A DXML.php30 * @param string|DOMDocument $actual
38 …public static function load($actual, $isHtml = false, $filename = '', $xinclude = false, $strict =… argument
40 if ($actual instanceof DOMDocument) {
41 return $actual;
44 if (!is_string($actual)) {
45 throw new PHPUnit_Framework_Exception('Could not load XML from ' . gettype($actual));
48 if ($actual === '') {
71 $loaded = $document->loadHTML($actual);
73 $loaded = $document->loadXML($actual);
/plugin/findologicxmlexport/vendor/phpunit/phpunit/tests/Framework/
H A DAssertTest.php1118 $actual = <<<XML
1146 $actual = new DOMDocument;
1162 $actual = new DOMDocument;
1178 $actual = new DOMDocument;
1191 $actual = new DOMDocument;
1204 $actual = new DOMDocument;
1217 $actual = new DOMDocument;
3458 $actual = '{"Mascott" : "Tux"}';
3480 $actual = '{"Mascott" : "Tux"}';
3502 $actual = json_encode(['Mascott' => 'Tux']);
[all …]
H A DConstraintTest.php827 public function testConstraintIsEqual2($expected, $actual, $message) argument
832 $constraint->evaluate($actual, 'custom message');
/plugin/findologicxmlexport/vendor/phpunit/phpunit/tests/Util/
H A DGetoptTest.php20 $actual = PHPUnit_Util_Getopt::getopt($args, '', ['colors==']);
34 $this->assertEquals($expected, $actual);
44 $actual = PHPUnit_Util_Getopt::getopt($args, 'v');
58 $this->assertEquals($expected, $actual);
H A DXMLTest.php86 $actual = PHPUnit_Util_XML::xmlToVariable($dom->documentElement);
88 $this->assertSame($expected, $actual);
/plugin/findologicxmlexport/vendor/sebastian/comparator/src/
H A DArrayComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 return is_array($expected) && is_array($actual);
34 * @param mixed $actual Second value to compare
46 sort($actual);
49 $remaining = $actual;
56 if (!array_key_exists($key, $actual)) {
69 $comparator = $this->factory->getComparatorFor($value, $actual[$key]);
70 … $comparator->assertEquals($value, $actual[$key], $delta, $canonicalize, $ignoreCase, $processed);
80 $this->exporter->shortenedExport($actual[$key])
[all …]
H A DComparator.php47 * @param mixed $actual The second value to compare
50 abstract public function accepts($expected, $actual); argument
56 * @param mixed $actual Second value to compare
63 …abstract public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ig… argument
H A DComparisonFailure.php30 protected $actual; variable in SebastianBergmann\\Comparator\\ComparisonFailure
60 * @param mixed $actual Actual value retrieved.
67 …public function __construct($expected, $actual, $expectedAsString, $actualAsString, $identical = f… argument
70 $this->actual = $actual;
81 return $this->actual;
H A DDOMNodeComparator.php25 * @param mixed $actual The second value to compare
28 public function accepts($expected, $actual) argument
30 return $expected instanceof DOMNode && $actual instanceof DOMNode;
37 * @param mixed $actual Second value to compare
45 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
48 $actualAsString = $this->nodeToText($actual, true, $ignoreCase);
59 $actual,
H A DDateTimeComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
28 ($actual instanceof \DateTime || $actual instanceof \DateTimeInterface);
35 * @param mixed $actual Second value to compare
43 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
50 if ($actual < $expectedLower->sub($delta) ||
51 $actual > $expectedUpper->add($delta)) {
54 $actual,
56 $this->dateTimeToString($actual),
H A DDoubleComparator.php29 * @param mixed $actual The second value to compare
32 public function accepts($expected, $actual) argument
34 …return (is_double($expected) || is_double($actual)) && is_numeric($expected) && is_numeric($actual
41 * @param mixed $actual Second value to compare
48 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
54 parent::assertEquals($expected, $actual, $delta, $canonicalize, $ignoreCase);
H A DExceptionComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 return $expected instanceof \Exception && $actual instanceof \Exception;
H A DFactory.php63 * @param mixed $actual The second value to compare
66 public function getComparatorFor($expected, $actual) argument
69 if ($comparator->accepts($expected, $actual)) {
H A DMockObjectComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 …return $expected instanceof \PHPUnit_Framework_MockObject_MockObject && $actual instanceof \PHPUni…
H A DNumericComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
29 return is_numeric($expected) && is_numeric($actual) &&
30 !(is_double($expected) || is_double($actual)) &&
31 !(is_string($expected) && is_string($actual));
38 * @param mixed $actual Second value to compare
47 if (is_infinite($actual) && is_infinite($expected)) {
52 (is_nan($actual) or is_nan($expected)) ||
53 abs($actual - $expected) > $delta) {
56 $actual,
[all …]
H A DObjectComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 return is_object($expected) && is_object($actual);
34 * @param mixed $actual Second value to compare
47 $actual,
49 $this->exporter->export($actual),
53 $this->exporter->export($actual),
65 $processed[] = array($actual, $expected);
70 if ($actual !== $expected) {
74 $this->toArray($actual),
[all …]
H A DResourceComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 return is_resource($expected) && is_resource($actual);
34 * @param mixed $actual Second value to compare
41 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
43 if ($actual != $expected) {
46 $actual,
48 $this->exporter->export($actual)
H A DScalarComparator.php22 * @param mixed $actual The second value to compare
26 public function accepts($expected, $actual) argument
29 (is_scalar($actual) xor null === $actual))
31 … || (is_string($expected) && is_object($actual) && method_exists($actual, '__toString'))
39 * @param mixed $actual Second value to compare
49 $actualToCompare = $actual;
53 if (is_string($expected) || is_string($actual)) {
67 $actual,
69 $this->exporter->export($actual),
77 $actual,
[all …]
H A DSplObjectStorageComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
27 return $expected instanceof \SplObjectStorage && $actual instanceof \SplObjectStorage;
34 * @param mixed $actual Second value to compare
41 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
43 foreach ($actual as $object) {
47 $actual,
49 $this->exporter->export($actual),
57 if (!$actual->contains($object)) {
60 $actual,
[all …]
H A DTypeComparator.php22 * @param mixed $actual The second value to compare
25 public function accepts($expected, $actual) argument
34 * @param mixed $actual Second value to compare
41 …public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase … argument
43 if (gettype($expected) != gettype($actual)) {
46 $actual,
53 $this->exporter->shortenedExport($actual),
/plugin/findologicxmlexport/vendor/sebastian/comparator/tests/
H A DArrayComparatorTest.php126 public function testAcceptsFails($expected, $actual) argument
129 $this->comparator->accepts($expected, $actual)
137 … public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0, $canonicalize = false) argument
142 $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
155 public function testAssertEqualsFails($expected, $actual,$delta = 0.0, $canonicalize = false) argument
161 $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
H A DDOMNodeComparatorTest.php114 public function testAcceptsSucceeds($expected, $actual) argument
117 $this->comparator->accepts($expected, $actual)
125 public function testAcceptsFails($expected, $actual) argument
128 $this->comparator->accepts($expected, $actual)
136 public function testAssertEqualsSucceeds($expected, $actual) argument
141 $this->comparator->assertEquals($expected, $actual);
154 public function testAssertEqualsFails($expected, $actual) argument
160 $this->comparator->assertEquals($expected, $actual);
H A DDateTimeComparatorTest.php158 public function testAcceptsFails($expected, $actual) argument
161 $this->comparator->accepts($expected, $actual)
169 public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0) argument
174 $this->comparator->assertEquals($expected, $actual, $delta);
187 public function testAssertEqualsFails($expected, $actual, $delta = 0.0) argument
193 $this->comparator->assertEquals($expected, $actual, $delta);
H A DDoubleComparatorTest.php87 public function testAcceptsSucceeds($expected, $actual) argument
90 $this->comparator->accepts($expected, $actual)
98 public function testAcceptsFails($expected, $actual) argument
101 $this->comparator->accepts($expected, $actual)
109 public function testAssertEqualsSucceeds($expected, $actual, $delta = 0.0) argument
114 $this->comparator->assertEquals($expected, $actual, $delta);
127 public function testAssertEqualsFails($expected, $actual, $delta = 0.0) argument
132 $this->comparator->assertEquals($expected, $actual, $delta);
H A DExceptionComparatorTest.php89 public function testAcceptsSucceeds($expected, $actual) argument
92 $this->comparator->accepts($expected, $actual)
100 public function testAcceptsFails($expected, $actual) argument
103 $this->comparator->accepts($expected, $actual)
111 public function testAssertEqualsSucceeds($expected, $actual) argument
116 $this->comparator->assertEquals($expected, $actual);
129 public function testAssertEqualsFails($expected, $actual, $message) argument
134 $this->comparator->assertEquals($expected, $actual);

1234567891011