-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from symcon/fixes/migrate-tests
Migration der Tests auf phpUnit v10
- Loading branch information
Showing
5 changed files
with
22 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.idea/* | ||
.DS_Store | ||
.idea/ | ||
.phpunit.* | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,5 @@ | ||
# LogikGatter | ||
|
||
Dieses Modul ermöglicht die Bestimmungen logischer Verknüpfung zwischen mehreren Variablen. Hierbei wird die boolsche Interpretation der Eingangsvariablen verwendet. | ||
[Link zur deutschen Dokumentation](https://www.symcon.de/de/service/dokumentation/modulreferenz/logikgatter/) | ||
|
||
### Inhaltverzeichnis | ||
|
||
1. [Funktionsumfang](#1-funktionsumfang) | ||
2. [Voraussetzungen](#2-voraussetzungen) | ||
3. [Software-Installation](#3-software-installation) | ||
4. [Einrichten der Instanzen in IP-Symcon](#4-einrichten-der-instanzen-in-ip-symcon) | ||
5. [Statusvariablen und Profile](#5-statusvariablen-und-profile) | ||
6. [WebFront](#6-webfront) | ||
7. [PHP-Befehlsreferenz](#7-php-befehlsreferenz) | ||
|
||
### 1. Funktionsumfang | ||
|
||
* Bestimmung der logischen Verknüpfung von Variablenwerten | ||
* Unterstützte Operationen: | ||
* OR | ||
* AND | ||
* NOR | ||
* NAND | ||
* Ausgang wird aktuell gehalten und aktualisiert sich sobald eine der Eingangsvariablen sich ändert | ||
|
||
### 2. Voraussetzungen | ||
|
||
- IP-Symcon ab Version 5.x | ||
|
||
### 3. Software-Installation | ||
|
||
- Über das Modul-Control folgende URL hinzufügen: `https://github.com/DrNiels/LogikGatter.git` | ||
|
||
### 4. Einrichten der Instanzen in IP-Symcon | ||
|
||
- Unter "Instanz hinzufügen" ist das 'LogikGatter'-Modul unter dem Hersteller '(Sonstige)' aufgeführt | ||
- Bei 'Berechnung' die gewünschte Operation auswählen | ||
- In der Liste 'Eingabe' die gewünschten Eingabevariablen auswählen | ||
- 'Invertieren' kann aktiviert werden um den Eingabewert dieser Variable zu negieren | ||
- Wird eine nicht-Boolean Variable ausgewählt, so wird diese als boolscher Wert interpretiert, z.B. 0 als false | ||
|
||
### 5. Statusvariablen und Profile | ||
|
||
Die Statusvariable "Ausgabe" beinhaltet das aktuelle Ergebnis der logischen Operation | ||
|
||
### 6. WebFront | ||
|
||
Die aktuelle Ausgabe wird angezeigt. | ||
|
||
### 7. PHP-Befehlsreferenz | ||
|
||
Das Modul stellt keine PHP-Befehle zur Verfügung. | ||
[Link to the english documentation](https://www.symcon.de/en/service/documentation/module-reference/logik-gate/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit> | ||
<php> | ||
<const name="PHPUNIT_TESTSUITE" value="true"/> | ||
</php> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">../LogikGatter</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">../LogikGatter</directory> | ||
</include> | ||
</source> | ||
</phpunit> |