Home
last modified time | relevance | path

Searched refs:comparator (Results 1 – 25 of 56) sorted by relevance

123

/plugin/findologicxmlexport/vendor/sebastian/comparator/src/
H A DFactory.php68 foreach ($this->comparators as $comparator) {
69 if ($comparator->accepts($expected, $actual)) {
70 return $comparator;
83 * @param Comparator $comparator The registered comparator
85 public function register(Comparator $comparator) argument
87 array_unshift($this->comparators, $comparator);
89 $comparator->setFactory($this);
97 * @param Comparator $comparator The unregistered comparator
99 public function unregister(Comparator $comparator) argument
102 if ($comparator === $_comparator) {
H A DArrayComparator.php69 $comparator = $this->factory->getComparatorFor($value, $actual[$key]);
70 … $comparator->assertEquals($value, $actual[$key], $delta, $canonicalize, $ignoreCase, $processed);
/plugin/findologicxmlexport/vendor/sebastian/comparator/tests/
H A DArrayComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\ArrayComparatorTest
23 $this->comparator = new ArrayComparator;
24 $this->comparator->setFactory(new Factory);
118 $this->comparator->accepts(array(), array())
129 $this->comparator->accepts($expected, $actual)
142 $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
161 $this->comparator->assertEquals($expected, $actual, $delta, $canonicalize);
H A DNumericComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\NumericComparatorTest
23 $this->comparator = new NumericComparator;
78 $this->comparator->accepts($expected, $actual)
89 $this->comparator->accepts($expected, $actual)
102 $this->comparator->assertEquals($expected, $actual, $delta);
120 $this->comparator->assertEquals($expected, $actual, $delta);
H A DDoubleComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\DoubleComparatorTest
23 $this->comparator = new DoubleComparator;
90 $this->comparator->accepts($expected, $actual)
101 $this->comparator->accepts($expected, $actual)
114 $this->comparator->assertEquals($expected, $actual, $delta);
132 $this->comparator->assertEquals($expected, $actual, $delta);
H A DDateTimeComparatorTest.php23 private $comparator; variable in SebastianBergmann\\Comparator\\DateTimeComparatorTest
27 $this->comparator = new DateTimeComparator;
147 $this->comparator->accepts(
161 $this->comparator->accepts($expected, $actual)
174 $this->comparator->assertEquals($expected, $actual, $delta);
193 $this->comparator->assertEquals($expected, $actual, $delta);
202 $this->assertTrue($this->comparator->accepts(new DateTime, new DateTimeImmutable));
211 $this->comparator->assertEquals(
H A DExceptionComparatorTest.php22 private $comparator; variable in SebastianBergmann\\Comparator\\ExceptionComparatorTest
26 $this->comparator = new ExceptionComparator;
27 $this->comparator->setFactory(new Factory);
92 $this->comparator->accepts($expected, $actual)
103 $this->comparator->accepts($expected, $actual)
116 $this->comparator->assertEquals($expected, $actual);
134 $this->comparator->assertEquals($expected, $actual);
H A DResourceComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\ResourceComparatorTest
23 $this->comparator = new ResourceComparator;
78 $this->comparator->accepts($expected, $actual)
89 $this->comparator->accepts($expected, $actual)
102 $this->comparator->assertEquals($expected, $actual);
118 $this->comparator->assertEquals($expected, $actual);
H A DObjectComparatorTest.php21 private $comparator; variable in SebastianBergmann\\Comparator\\ObjectComparatorTest
25 $this->comparator = new ObjectComparator;
26 $this->comparator->setFactory(new Factory);
106 $this->comparator->accepts($expected, $actual)
117 $this->comparator->accepts($expected, $actual)
130 $this->comparator->assertEquals($expected, $actual, $delta);
148 $this->comparator->assertEquals($expected, $actual, $delta);
H A DTypeComparatorTest.php21 private $comparator; variable in SebastianBergmann\\Comparator\\TypeComparatorTest
25 $this->comparator = new TypeComparator;
73 $this->comparator->accepts($expected, $actual)
86 $this->comparator->assertEquals($expected, $actual);
102 $this->comparator->assertEquals($expected, $actual);
H A DFactoryTest.php83 $comparator = new TestClassComparator;
86 $factory->register($comparator);
93 $factory->unregister($comparator);
102 $comparator = new TestClassComparator;
105 $factory->register($comparator);
106 $factory->unregister($comparator);
H A DSplObjectStorageComparatorTest.php22 private $comparator; variable in SebastianBergmann\\Comparator\\SplObjectStorageComparatorTest
26 $this->comparator = new SplObjectStorageComparator;
89 $this->comparator->accepts(
103 $this->comparator->accepts($expected, $actual)
116 $this->comparator->assertEquals($expected, $actual);
135 $this->comparator->assertEquals($expected, $actual);
H A DDOMNodeComparatorTest.php22 private $comparator; variable in SebastianBergmann\\Comparator\\DOMNodeComparatorTest
26 $this->comparator = new DOMNodeComparator;
117 $this->comparator->accepts($expected, $actual)
128 $this->comparator->accepts($expected, $actual)
141 $this->comparator->assertEquals($expected, $actual);
160 $this->comparator->assertEquals($expected, $actual);
H A DScalarComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\ScalarComparatorTest
23 $this->comparator = new ScalarComparator;
114 $this->comparator->accepts($expected, $actual)
125 $this->comparator->accepts($expected, $actual)
138 $this->comparator->assertEquals($expected, $actual, 0.0, false, $ignoreCase);
156 $this->comparator->assertEquals($expected, $actual);
H A DMockObjectComparatorTest.php19 private $comparator; variable in SebastianBergmann\\Comparator\\MockObjectComparatorTest
23 $this->comparator = new MockObjectComparator;
24 $this->comparator->setFactory(new Factory);
122 $this->comparator->accepts($expected, $actual)
133 $this->comparator->accepts($expected, $actual)
146 $this->comparator->assertEquals($expected, $actual, $delta);
164 $this->comparator->assertEquals($expected, $actual, $delta);
/plugin/findologicxmlexport/vendor/sebastian/comparator/
H A DREADME.md1 …s://travis-ci.org/sebastianbergmann/comparator.svg?branch=master)](https://travis-ci.org/sebastian…
11 composer require sebastian/comparator
15 composer require --dev sebastian/comparator
28 $comparator = $factory->getComparatorFor($date1, $date2);
31 $comparator->assertEquals($date1, $date2);
/plugin/nspages/printers/
H A Dsorters.php25 usort($array, array($this, 'comparator'));
28 abstract function comparator($item1, $item2); function in nspages_sorter
36 function comparator($item1, $item2){ function in nspages_default_sorter
46 function comparator($item1, $item2){ function in nspages_naturalOrder_sorter
62 usort($array, array($this, "comparator"));
66 function comparator($item1, $item2){ function in nspages_dictOrder_sorter
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/
H A DObjectStateToken.php63 $comparator = $this->comparatorFactory->getComparatorFor(
68 $comparator->assertEquals($this->value, $actual);
H A DExactValueToken.php55 $comparator = $this->comparatorFactory->getComparatorFor(
60 $comparator->assertEquals($argument, $this->value);
/plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/Constraint/
H A DIsEqual.php118 $comparator = $comparatorFactory->getComparatorFor(
123 $comparator->assertEquals(
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/
H A Dcollection.js24 col.comparator = function(m1, m2) { function
43 ], {comparator: 'id'});
70 comparator: comparator
75 assert.strictEqual(collection.comparator, comparator);
206 comparator: function(m1, m2) {
1124 comparator: 'id'
1358 comparator: 'id',
1384 comparator: 'id',
1445 comparator: 'a'
1479 comparator: comparator
[all …]
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/
H A Dbackbone.js766 if (options.comparator !== void 0) this.comparator = options.comparator;
865 var sortable = this.comparator && at == null && options.sort !== false;
866 var sortAttr = _.isString(this.comparator) ? this.comparator : null;
1032 var comparator = this.comparator;
1033 if (!comparator) throw new Error('Cannot sort a set without a comparator');
1036 var length = comparator.length;
1037 if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
1040 if (length === 1 || _.isString(comparator)) {
1041 this.models = this.sortBy(comparator);
1043 this.models.sort(comparator);
[all …]
/plugin/findologicxmlexport/vendor/phpspec/prophecy/src/Prophecy/Prophecy/
H A DObjectProphecy.php246 $comparator = $this->comparatorFactory->getComparatorFor(
251 $comparator->assertEquals($argumentsWildcard, $arguments);
/plugin/sequencediagram/bower_components/lodash/dist/
H A Dlodash.js2778 if (comparator) {
4257 if (comparator) {
7013 var comparator = last(values);
7015 comparator = undefined;
7564 var comparator = last(arrays),
7567 comparator = typeof comparator == 'function' ? comparator : undefined;
7568 if (comparator) {
8367 var comparator = last(arrays);
8368 comparator = typeof comparator == 'function' ? comparator : undefined;
8442 comparator = typeof comparator == 'function' ? comparator : undefined;
[all …]
/plugin/sequencediagram/bower_components/lodash/
H A Dlodash.js2778 if (comparator) {
4257 if (comparator) {
7013 var comparator = last(values);
7015 comparator = undefined;
7564 var comparator = last(arrays),
7567 comparator = typeof comparator == 'function' ? comparator : undefined;
7568 if (comparator) {
8367 var comparator = last(arrays);
8368 comparator = typeof comparator == 'function' ? comparator : undefined;
8442 comparator = typeof comparator == 'function' ? comparator : undefined;
[all …]

123