2013-06-04 15:55:44 +02:00
|
|
|
<?php
|
2014-04-09 14:18:14 +02:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
2013-06-04 15:55:44 +02:00
|
|
|
|
|
|
|
namespace Tests\Icinga\Regression;
|
|
|
|
|
2014-04-10 10:32:50 +02:00
|
|
|
use Icinga\Test\BaseTestCase;
|
|
|
|
|
2013-06-04 15:55:44 +02:00
|
|
|
/**
|
|
|
|
* Class Bug4102
|
2013-09-04 18:27:16 +02:00
|
|
|
*
|
2013-06-04 15:55:44 +02:00
|
|
|
* Bogus regression test
|
|
|
|
*
|
|
|
|
* @see https://dev.icinga.org/issues/4102
|
|
|
|
*/
|
2014-04-10 10:32:50 +02:00
|
|
|
class Bug4102Test extends BaseTestCase
|
2013-06-04 15:55:44 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Test class name to match definition
|
|
|
|
*/
|
|
|
|
public function testClassName()
|
|
|
|
{
|
|
|
|
$class = get_class($this);
|
|
|
|
$this->assertContains('Bug4102Test', $class);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test namespace to match definition
|
|
|
|
*/
|
|
|
|
public function testNamespace()
|
|
|
|
{
|
|
|
|
$namespace = __NAMESPACE__;
|
|
|
|
$this->assertEquals('Tests\Icinga\Regression', $namespace);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test phpunit inheritance
|
|
|
|
*/
|
|
|
|
public function testInheritance()
|
|
|
|
{
|
|
|
|
$this->assertInstanceOf('\PHPUnit_Framework_TestCase', $this);
|
|
|
|
}
|
|
|
|
}
|