Skip to content

Commit

Permalink
Fix UnitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank.Markwort committed Sep 15, 2024
1 parent 2766a6f commit 2eb9ce6
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 185 deletions.
1 change: 0 additions & 1 deletion .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ jobs:
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
args: --baseline,qodana.sarif.json
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"license": "Apache License 2.0",
"require-dev": {
"phpunit/phpunit": "^11.2.x-dev"
"phpunit/phpunit": "^11.3.5"
},
"autoload": {
"psr-4": {
Expand Down
362 changes: 180 additions & 182 deletions composer.lock

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/Modules/External/FromCache/WindStatisticFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,19 @@ public function getCog(): float
return $this->sogCog->getCog();
}

/**
* @throws ParserException
* @throws ConfigException
*/
public function getHeadingVectorRad(): Rad
{
return $this->getRad($this->getHeadingRad());
}

/**
* @throws ParserException
* @throws ConfigException
*/
public function getCogVector(): PolarVector
{
return $this->getPolarVector($this->getSog(), $this->getCog());
Expand Down
3 changes: 3 additions & 0 deletions src/Modules/Internal/Pgns/AbstractPgn.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ protected function getCache():CacheInterface

abstract protected function getNmeaData():string;

/**
* @throws ConfigException
*/
protected function printAllFieldNames(DataFacade $dataFacade):string
{
$result = sprintf("%s pgn => %s src => %s dst => %s type => %s pduFormat => %s dataPage => %s ",
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Internal/RealtimeDistributor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RealtimeDistributor implements InterfaceObservableRealtime
{
private Frame $frame;
private array $observers = [];
private $data;
private string $data;
private ?Client $webSocket = null;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Nmea/Protocol/FramesFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private static function getInstance():Frames
* @throws ErrorException
* @throws ConfigException
* @throws ParserException
* @throws \Exception
*/
public static function addData(string $nmea2000): void
{
Expand Down

0 comments on commit 2eb9ce6

Please sign in to comment.