This commit is contained in:
Thomas Peterson 2025-06-06 17:25:21 +02:00
parent 7f00ee991e
commit c276d46db4
2 changed files with 5 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@ class CalcComplexTest extends TestCase
$this->assertSame(31.63, $this->engine->getPrice());
}
public function tesAuflage500(): void
public function testAuflage500(): void
{
$this->engine->setVariable('auflage', 500);
$this->engine->calc();
@ -56,13 +56,12 @@ class CalcComplexTest extends TestCase
{
$this->engine->setVariable('produktart_nopresentationpdf', 2);
$this->engine->calc();
file_put_contents("/tmp/f1.txt", print_r($this->engine->getVariables(), true).print_r($this->engine->getDebugCalcVariables(), true).print_r($this->engine->getDebugCalcFormel(), true));
$this->assertSame(46.25, $this->engine->getPrice());
$this->assertSame(58.89, $this->engine->getPrice());
}
public function tesAndereProduktArt3(): void
public function testAndereProduktArt3(): void
{
$this->engine->setVariable('produktart_nopresentationpdf', 3);
$this->assertSame(36.22, $this->engine->getPrice());
$this->assertSame(46.93, $this->engine->getPrice());
}
}