mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 21:18:39 +00:00
Fix some incomplete tests
This commit is contained in:
parent
b361ef438b
commit
1f600d535c
|
|
@ -37,6 +37,4 @@ class Vector extends Matrix
|
||||||
{
|
{
|
||||||
parent::__construct($m);
|
parent::__construct($m);
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: maybe overwrite setMatrix since only one column (is only a visual improvement)
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://website.orange-management.de
|
|
||||||
*/
|
|
||||||
declare(strict_types = 1);
|
|
||||||
|
|
||||||
namespace phpOMS\Math\Number;
|
|
||||||
|
|
||||||
class Irrational
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://website.orange-management.de
|
|
||||||
*/
|
|
||||||
declare(strict_types = 1);
|
|
||||||
|
|
||||||
namespace phpOMS\Math\Number;
|
|
||||||
|
|
||||||
class Rational
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://website.orange-management.de
|
|
||||||
*/
|
|
||||||
declare(strict_types = 1);
|
|
||||||
|
|
||||||
namespace phpOMS\Math\Number;
|
|
||||||
|
|
||||||
class Real
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -29,7 +29,7 @@ class TestUtils
|
||||||
/**
|
/**
|
||||||
* Set private object member
|
* Set private object member
|
||||||
*
|
*
|
||||||
* @param object $obj Object to modify
|
* @param object||string $obj Object to modify
|
||||||
* @param string $name Member name to modify
|
* @param string $name Member name to modify
|
||||||
* @param mixed $value Value to set
|
* @param mixed $value Value to set
|
||||||
*
|
*
|
||||||
|
|
@ -39,7 +39,7 @@ class TestUtils
|
||||||
*/
|
*/
|
||||||
public static function setMember(/* object */ $obj, string $name, $value) : bool
|
public static function setMember(/* object */ $obj, string $name, $value) : bool
|
||||||
{
|
{
|
||||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
$reflectionClass = new \ReflectionClass(is_string($obj) ? $obj : get_class($obj));
|
||||||
|
|
||||||
if (!$reflectionClass->hasProperty($name)) {
|
if (!$reflectionClass->hasProperty($name)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -63,16 +63,16 @@ class TestUtils
|
||||||
/**
|
/**
|
||||||
* Get private object member
|
* Get private object member
|
||||||
*
|
*
|
||||||
* @param object $obj Object to read
|
* @param object||string $obj Object to read
|
||||||
* @param string $name Member name to read
|
* @param string $name Member name to read
|
||||||
*
|
*
|
||||||
* @return mixed Returns the member variable value
|
* @return mixed Returns the member variable value
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function getMember(/* object */ $obj, string $name)
|
public static function getMember($obj, string $name)
|
||||||
{
|
{
|
||||||
$reflectionClass = new \ReflectionClass(get_class($obj));
|
$reflectionClass = new \ReflectionClass(is_string($obj) ? $obj : get_class($obj));
|
||||||
|
|
||||||
if (!$reflectionClass->hasProperty($name)) {
|
if (!$reflectionClass->hasProperty($name)) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user