Remove useless tests

1.9.x
Yannick Warnier 11 years ago
parent bdc3253d40
commit ea4cc8b61a
  1. 173
      tests/phpunit/classes/AccessTokenTest.class.php
  2. 28
      tests/phpunit/classes/InvalidArgumentExceptionTest.class.php
  3. 28
      tests/phpunit/classes/LengthExceptionTest.class.php
  4. 28
      tests/phpunit/classes/LibXMLErrorTest.class.php
  5. 28
      tests/phpunit/classes/LogicExceptionTest.class.php
  6. 28
      tests/phpunit/classes/OutOfBoundsExceptionTest.class.php
  7. 28
      tests/phpunit/classes/OutOfRangeExceptionTest.class.php
  8. 28
      tests/phpunit/classes/OverflowExceptionTest.class.php
  9. 28
      tests/phpunit/classes/PharExceptionTest.class.php
  10. 28
      tests/phpunit/classes/UnderflowExceptionTest.class.php

@ -1,173 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:37:09.
*/
class AccessTokenTest extends PHPUnit_Framework_TestCase
{
/**
* @var AccessToken
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
$this->object = new AccessToken(1, 1, 1);
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
unset($this->object);
}
/**
* Generated from @assert () !== null.
*
* @covers AccessToken::empty_token
*/
public function testEmpty_token()
{
$this->assertNotSame(
null,
AccessToken::empty_token()
);
}
/**
* Generated from @assert ('') !== null.
*
* @covers AccessToken::parse
*/
public function testParse()
{
$this->assertNotSame(
null,
AccessToken::parse('')
);
}
/**
* Generated from @assert (base64_encode('a/b')) !== null.
*
* @covers AccessToken::parse
*/
public function testParse2()
{
$this->assertNotSame(
null,
AccessToken::parse(base64_encode('a/b'))
);
}
/**
* Generated from @assert (base64_encode('a/b/c')) !== null.
*
* @covers AccessToken::parse
*/
public function testParse3()
{
$this->assertNotSame(
null,
AccessToken::parse(base64_encode('a/b/c'))
);
}
/**
* Generated from @assert (0, 0, 'a') !== null.
*
* @covers AccessToken::create
*/
public function testCreate()
{
$this->assertNotSame(
null,
AccessToken::create(0, 0, 'a')
);
}
/**
* Generated from @assert () > 0.
*
* @covers AccessToken::get_id
*/
public function testGet_id()
{
$this->assertGreaterThan(
0,
$this->object->get_id()
);
}
/**
* Generated from @assert () > 0.
*
* @covers AccessToken::get_user_id
*/
public function testGet_user_id()
{
$this->assertGreaterThan(
0,
$this->object->get_user_id()
);
}
/**
* Generated from @assert () !== null.
*
* @covers AccessToken::get_key
*/
public function testGet_key()
{
$this->assertNotSame(
null,
$this->object->get_key()
);
}
/**
* Generated from @assert () === true.
*
* @covers AccessToken::is_empty
*/
public function testIs_empty()
{
$this->assertSame(
true,
$this->object->is_empty()
);
}
/**
* Generated from @assert () === false.
*
* @covers AccessToken::is_valid
*/
public function testIs_valid()
{
$this->assertSame(
false,
$this->object->is_valid()
);
}
/**
* Generated from @assert () !== null.
*
* @covers AccessToken::__toString
*/
public function test__toString()
{
$this->assertNotSame(
null,
$this->object->__toString()
);
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:48.
*/
class InvalidArgumentExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var InvalidArgumentException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new InvalidArgumentException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:48.
*/
class LengthExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var LengthException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new LengthException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:45.
*/
class LibXMLErrorTest extends PHPUnit_Framework_TestCase
{
/**
* @var LibXMLError
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new LibXMLError;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:48.
*/
class LogicExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var LogicException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new LogicException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:49.
*/
class OutOfBoundsExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var OutOfBoundsException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new OutOfBoundsException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:49.
*/
class OutOfRangeExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var OutOfRangeException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new OutOfRangeException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:49.
*/
class OverflowExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var OverflowException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new OverflowException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:55.
*/
class PharExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var PharException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new PharException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}

@ -1,28 +0,0 @@
<?php
/**
* Generated by PHPUnit_SkeletonGenerator on 2013-01-07 at 09:22:49.
*/
class UnderflowExceptionTest extends PHPUnit_Framework_TestCase
{
/**
* @var UnderflowException
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new UnderflowException;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
}
Loading…
Cancel
Save