Skip to content

Commit

Permalink
Merge pull request #3 from symcon/fixes/migrate-tests
Browse files Browse the repository at this point in the history
Migration der Tests auf phpUnit v10
  • Loading branch information
Sunnyka98 authored Sep 19, 2023
2 parents 0c48a36 + 1b0e123 commit 2fd72f5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
.idea/
.phpunit.*
.php_cs.cache
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Home Connect

[![IP-Symcon is awesome!](https://img.shields.io/badge/IP--Symcon-6.0-blue.svg)](https://www.symcon.de)
[![Check Style](https://github.com/symcon/Aktivliste/workflows/Check%20Style/badge.svg)](https://github.com/symcon/HomeConnect/actions)
[![Run Tests](https://github.com/symcon/Aktivliste/workflows/Run%20Tests/badge.svg)](https://github.com/symcon/HomeConnect/actions)


Folgende Module beinhaltet das Home Connect Repository:

- __Home Connect Cloud__ ([Dokumentation](https://www.symcon.de/service/dokumentation/modulreferenz/home-connect))
Expand Down
2 changes: 1 addition & 1 deletion tests/HomeConnectCoffeeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use PHPUnit\Framework\TestCase;

class HomeConnectCoffeeMakerBaseTest extends TestCase
class HomeConnectCoffeeTest extends TestCase
{
const COFFEE = [
'OperationState' => 'Ready',
Expand Down
2 changes: 1 addition & 1 deletion tests/HomeConnectDryerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use PHPUnit\Framework\TestCase;

class HomeConnectDryerBaseTest extends TestCase
class HomeConnectDryerTest extends TestCase
{
const COTTON = [
'DoorState' => 'Closed',
Expand Down
2 changes: 1 addition & 1 deletion tests/HomeConnectOvenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use PHPUnit\Framework\TestCase;

class HomeConnectVarTypeTest extends TestCase
class HomeConnectOvenTest extends TestCase
{
protected function setUp(): void
{
Expand Down
27 changes: 14 additions & 13 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit>
<php>
<const name="PHPUNIT_TESTSUITE" value="true"/>
</php>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../Home Connect Cloud</directory>
<directory suffix=".php">../Home Connect Configurator</directory>
<directory suffix=".php">../Home Connect Device</directory>
<directory suffix=".php">../libs</directory>
</whitelist>
</filter>
</phpunit>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage/>
<php>
<const name="PHPUNIT_TESTSUITE" value="true"/>
</php>
<source>
<include>
<directory suffix=".php">../Home Connect Cloud</directory>
<directory suffix=".php">../Home Connect Configurator</directory>
<directory suffix=".php">../Home Connect Device</directory>
<directory suffix=".php">../libs</directory>
</include>
</source>
</phpunit>

0 comments on commit 2fd72f5

Please sign in to comment.