Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poldixd committed Mar 13, 2024
1 parent aa67897 commit e47addd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
20 changes: 2 additions & 18 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="SEOTools Test Suite">
<directory suffix=".php">./tests</directory>
<directory suffix="Test.php">tests</directory>
<exclude>./tests/SEOTools/BaseTest.php</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-php" target="build/coverage.serialized"/>
</logging>
</phpunit>
2 changes: 1 addition & 1 deletion tests/SEOTools/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Class BaseTest.
*/
abstract class BaseTest extends TestCase
class BaseTest extends TestCase
{
/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion tests/SEOTools/SEOMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function test_set_canonical()
$this->assertEquals($canonical, $this->seoMeta->getCanonical());
}

public function dataTestUrls()
public static function dataTestUrls()
{
return [
['http://localhost/hello/world', 'http://localhost/hello/world'],
Expand Down
2 changes: 1 addition & 1 deletion tests/SEOTools/SEOToolsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function test_container_are_provided($contract, $concreteClass)
/**
* @return array
*/
public function bindsListProvider()
public static function bindsListProvider()
{
return [
[
Expand Down

0 comments on commit e47addd

Please sign in to comment.