Skip to content

Commit

Permalink
tests: Add missing covers annotation
Browse files Browse the repository at this point in the history
Change-Id: I82e7adb0f8611379492a79234eca522978e8ed08
  • Loading branch information
umherirrender authored and Krinkle committed Feb 17, 2025
1 parent 75095de commit 7e8a9e8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
<exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic" />
Expand Down
3 changes: 3 additions & 0 deletions test/phpunit/FixturesTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// No @covers here, as this may cover all classes.
// phpcs:disable MediaWiki.Commenting.MissingCovers.MissingCovers

class FixturesTest extends LessTestCase {
private const KNOWN_FAILURE = [
'lessjs-2.5.3' => [
Expand Down
3 changes: 3 additions & 0 deletions test/phpunit/FunctionTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// No @covers here, as this may cover all classes.
// phpcs:disable MediaWiki.Commenting.MissingCovers.MissingCovers

class FunctionTest extends LessTestCase {

public function testFunction() {
Expand Down
7 changes: 7 additions & 0 deletions test/phpunit/MapTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/**
* @covers \Less_Parser
* @covers \Less_Configurable
* @covers \Less_Output_Mapped
* @covers \Less_SourceMap_Generator
* @covers \Less_SourceMap_Base64VLQ
*/
class MapTest extends LessTestCase {

public function testMap() {
Expand Down
3 changes: 3 additions & 0 deletions test/phpunit/ParserTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// No @covers here, as this may cover all classes.
// phpcs:disable MediaWiki.Commenting.MissingCovers.MissingCovers

class ParserTest extends LessTestCase {
public function testGetVariablesUncompiled() {
$lessCode = '
Expand Down

0 comments on commit 7e8a9e8

Please sign in to comment.