Fix some incomplete tests

This commit is contained in:
Dennis Eichhorn 2017-11-16 14:07:27 +01:00
parent b361ef438b
commit 1f600d535c
5 changed files with 5 additions and 70 deletions

View File

@ -37,6 +37,4 @@ class Vector extends Matrix
{
parent::__construct($m);
}
// todo: maybe overwrite setMatrix since only one column (is only a visual improvement)
}

View File

@ -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
{
}

View File

@ -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
{
}

View File

@ -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
{
}

View File

@ -29,7 +29,7 @@ class TestUtils
/**
* 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 mixed $value Value to set
*
@ -39,7 +39,7 @@ class TestUtils
*/
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)) {
return false;
@ -63,16 +63,16 @@ class TestUtils
/**
* Get private object member
*
* @param object $obj Object to read
* @param object||string $obj Object to read
* @param string $name Member name to read
*
* @return mixed Returns the member variable value
*
* @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)) {
return null;