Skip to content

Commit

Permalink
Moving getVarType() to Core/functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Oct 9, 2017
1 parent b348944 commit 14a6d8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -593,15 +593,4 @@ public function testEventManagerReset2($prevEventManager)
$this->assertNotSame($prevEventManager, EventManager::instance());
}

/**
* testing getVarType()
*
* @return void
*/
public function testGetVarType()
{
$this->assertEquals('stdClass', getVarType(new \stdClass()));
$this->assertEquals('array', getVarType([]));
$this->assertEquals('string', getVarType(''));
}
}
13 changes: 13 additions & 0 deletions tests/TestCase/Core/FunctionsTest.php
Expand Up @@ -77,4 +77,17 @@ public function testDeprecationWarningLevelDisabled()
error_reporting(E_ALL ^ E_USER_DEPRECATED);
$this->assertNull(deprecationWarning('This is going away'));
}


/**
* testing getVarType()
*
* @return void
*/
public function testGetVarType()
{
$this->assertEquals('stdClass', getVarType(new \stdClass()));
$this->assertEquals('array', getVarType([]));
$this->assertEquals('string', getVarType(''));
}
}

0 comments on commit 14a6d8c

Please sign in to comment.