Skip to content

Commit 335eafb

Browse files
committed
Tests fixed after rebase
1 parent 2660379 commit 335eafb

24 files changed

+25
-57
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- name: Composer
3434
run: make composer
3535

36-
- if: matrix.php == '7.4' && matrix.elastic == "7.12.1"
36+
- if: matrix.php == '7.4' && matrix.elastic == '7.12.1'
3737
name: Coding standard
3838
run: make cs
3939

40-
- if: matrix.php == '7.4' && matrix.elastic == "7.12.1"
40+
- if: matrix.php == '7.4' && matrix.elastic == '7.12.1'
4141
name: PHPStan
4242
run: make phpstan
4343

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ cs:
1717
cs-local:
1818
vendor/bin/phpcs --standard=ruleset.xml src tests/SpameriTests
1919

20+
cbf:
21+
vendor/bin/phpcbf --standard=ruleset.xml src tests/SpameriTests
22+
2023
tests:
2124
vendor/bin/tester -s -p php --colors 1 -C -j 1 tests
2225

ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<properties>
77
<property name="rootNamespaces" type="array">
88
<element key="src" value="Spameri\ElasticQuery"/>
9+
<element key="tests/SpameriTests" value="SpameriTests"/>
910
</property>
1011
</properties>
1112
</rule>

src/Mapping/Analyzer/Fingerprint.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,4 @@ public function toArray(): array
6060
];
6161
}
6262

63-
64-
public function name(): string
65-
{
66-
return 'customFingerprint';
67-
}
68-
6963
}

src/Mapping/Analyzer/Keyword.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@ public function toArray(): array
2929
];
3030
}
3131

32-
33-
public function name(): string
34-
{
35-
return 'customKeyword';
36-
}
37-
3832
}

src/Mapping/Analyzer/Pattern.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,4 @@ public function toArray(): array
6868
];
6969
}
7070

71-
72-
public function name(): string
73-
{
74-
return 'customPattern';
75-
}
76-
7771
}

src/Mapping/Analyzer/Simple.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@ public function toArray(): array
2929
];
3030
}
3131

32-
33-
public function name(): string
34-
{
35-
return 'customSimple';
36-
}
37-
3832
}

src/Mapping/Analyzer/Standard.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,4 @@ public function toArray(): array
5252
];
5353
}
5454

55-
56-
public function name(): string
57-
{
58-
return 'customStandard';
59-
}
60-
6155
}

src/Mapping/Analyzer/Stop.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,4 @@ public function toArray(): array
4343
];
4444
}
4545

46-
47-
public function name(): string
48-
{
49-
return 'customStop';
50-
}
51-
5246
}

src/Mapping/Analyzer/Whitespace.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@ public function toArray(): array
2929
];
3030
}
3131

32-
33-
public function name(): string
34-
{
35-
return 'customWhitespace';
36-
}
37-
3832
}

0 commit comments

Comments
 (0)