Applied rector to test files

This commit is contained in:
Jan Böhmer 2023-06-11 14:18:53 +02:00
parent 7ee01d9a05
commit 98dc553938
46 changed files with 42 additions and 102 deletions

View file

@ -282,7 +282,7 @@ class AttachmentTest extends TestCase
* @param string $property - property on instance being modified
* @param mixed $value - new value of the property being modified
*/
public function setProtectedProperty(object $object, string $property, $value): void
public function setProtectedProperty(object $object, string $property, mixed $value): void
{
$reflection = new ReflectionClass($object);
$reflection_property = $reflection->getProperty($property);

View file

@ -42,7 +42,7 @@ class AbstractStructuralDBElementTest extends TestCase
protected function setUp(): void
{
parent::setUp(); // TODO: Change the autogenerated stub
// TODO: Change the autogenerated stub
//Build a simple hierachy
$this->root = new AttachmentType();

View file

@ -104,9 +104,9 @@ class PartTest extends TestCase
$this->assertSame(13.141, $part->getAmountSum());
//1 billion part lot
$part->addPartLot((new PartLot())->setAmount(1000000000));
$this->assertSame(1000000013.141, $part->getAmountSum());
$part->addPartLot((new PartLot())->setAmount(1_000_000_000));
$this->assertSame(1_000_000_013.141, $part->getAmountSum());
$measurement_unit->setIsInteger(true);
$this->assertSame(1000000013.0, $part->getAmountSum());
$this->assertSame(1_000_000_013.0, $part->getAmountSum());
}
}