Merge pull request #356 from bantu/test-directory-reorganisation

Split Unit/Functional Test Suites.

* bantu/test-directory-reorganisation:
  Split Unit/Functional Test Suites.
This commit is contained in:
Andreas Fischer 2014-06-01 21:56:57 +02:00
commit 602606d966
16 changed files with 20 additions and 17 deletions

View File

@ -4,8 +4,11 @@
colors="true" colors="true"
> >
<testsuites> <testsuites>
<testsuite name="phpseclib Test Suite"> <testsuite name="phpseclib Unit Test Suite">
<directory>./tests/</directory> <directory>./tests/Unit/</directory>
</testsuite>
<testsuite name="phpseclib Functional Test Suite">
<directory>./tests/Functional/</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>

View File

@ -6,7 +6,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Net_SFTPFunctionalTest extends PhpseclibFunctionalTestCase class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
{ {
static protected $scratchDir; static protected $scratchDir;
static protected $exampleData; static protected $exampleData;

View File

@ -6,7 +6,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Net_SSH2FunctionalTest extends PhpseclibFunctionalTestCase class Functional_Net_SSH2Test extends PhpseclibFunctionalTestCase
{ {
public function setUp() public function setUp()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Crypt_AES_ContinuousBufferTest extends Crypt_AES_TestCase class Unit_Crypt_AES_ContinuousBufferTest extends Unit_Crypt_AES_TestCase
{ {
// String intented // String intented
protected $modes = array( protected $modes = array(

View File

@ -7,7 +7,7 @@
require_once 'Crypt/AES.php'; require_once 'Crypt/AES.php';
abstract class Crypt_AES_TestCase extends PhpseclibTestCase abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Crypt_Hash_MD5Test extends Crypt_Hash_TestCase class Unit_Crypt_Hash_MD5Test extends Unit_Crypt_Hash_TestCase
{ {
public function getInstance() public function getInstance()
{ {

View File

@ -7,7 +7,7 @@
require_once 'Crypt/Hash.php'; require_once 'Crypt/Hash.php';
abstract class Crypt_Hash_TestCase extends PhpseclibTestCase abstract class Unit_Crypt_Hash_TestCase extends PhpseclibTestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -7,7 +7,7 @@
require_once 'Crypt/RSA.php' ; require_once 'Crypt/RSA.php' ;
class Crypt_RSA_LoadKeyTest extends PhpseclibTestCase class Unit_Crypt_RSA_LoadKeyTest extends PhpseclibTestCase
{ {
public function testBadKey() public function testBadKey()
{ {

View File

@ -7,7 +7,7 @@
require_once 'File/ASN1.php'; require_once 'File/ASN1.php';
class File_ASN1_DevTest extends PhpseclibTestCase class Unit_File_ASN1_DevTest extends PhpseclibTestCase
{ {
/** /**
* on older versions of File_ASN1 this would yield a PHP Warning * on older versions of File_ASN1 this would yield a PHP Warning

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Math_BigInteger_BCMathTest extends Math_BigInteger_TestCase class Unit_Math_BigInteger_BCMathTest extends Unit_Math_BigInteger_TestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Math_BigInteger_GMPTest extends Math_BigInteger_TestCase class Unit_Math_BigInteger_GMPTest extends Unit_Math_BigInteger_TestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Math_BigInteger_InternalOpenSSLTest extends Math_BigInteger_TestCase class Unit_Math_BigInteger_InternalOpenSSLTest extends Unit_Math_BigInteger_TestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Math_BigInteger_InternalTest extends Math_BigInteger_TestCase class Math_BigInteger_InternalTest extends Unit_Math_BigInteger_TestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -7,7 +7,7 @@
require_once 'Math/BigInteger.php'; require_once 'Math/BigInteger.php';
abstract class Math_BigInteger_TestCase extends PhpseclibTestCase abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {

View File

@ -5,7 +5,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Net_SSH1Test extends PhpseclibTestCase class Unit_Net_SSH1Test extends PhpseclibTestCase
{ {
public function formatLogDataProvider() public function formatLogDataProvider()
{ {

View File

@ -6,7 +6,7 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
class Net_SSH2Test extends PhpseclibTestCase class Unit_Net_SSH2Test extends PhpseclibTestCase
{ {
public function formatLogDataProvider() public function formatLogDataProvider()
{ {