From e31a52bc48c0adaf7d94ed18ea5614825ea70c9f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 12 Jan 2017 00:04:58 +0100 Subject: [PATCH] test: improve wording, fix typos --- test/php/library/Businessprocess/HostNodeTest.php | 2 +- test/php/library/Businessprocess/Html/AttributeTest.php | 2 +- test/php/library/Businessprocess/Html/HtmlTagTest.php | 2 +- .../library/Businessprocess/Operators/AndOperatorTest.php | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/php/library/Businessprocess/HostNodeTest.php b/test/php/library/Businessprocess/HostNodeTest.php index 2214f67..72852dc 100644 --- a/test/php/library/Businessprocess/HostNodeTest.php +++ b/test/php/library/Businessprocess/HostNodeTest.php @@ -44,7 +44,7 @@ class HostNodeTest extends BaseTestCase /** * @expectedException \Icinga\Exception\ProgrammingError */ - public function testWhetherSettingAnInvalidStateFails() + public function testSettingAnInvalidStateFails() { $bp = new BpConfig(); $host = $bp->createHost('localhost')->setState(98); diff --git a/test/php/library/Businessprocess/Html/AttributeTest.php b/test/php/library/Businessprocess/Html/AttributeTest.php index af4d82b..0822f95 100644 --- a/test/php/library/Businessprocess/Html/AttributeTest.php +++ b/test/php/library/Businessprocess/Html/AttributeTest.php @@ -139,7 +139,7 @@ class AttributeTest extends BaseTestCase ); } - public function testRendersCorrectls() + public function testRendersCorrectly() { $a = new Attribute('weird', array('"sü?ß', '/some/url?a=b&c=d')); $this->assertEquals( diff --git a/test/php/library/Businessprocess/Html/HtmlTagTest.php b/test/php/library/Businessprocess/Html/HtmlTagTest.php index 4b24558..8d51f86 100644 --- a/test/php/library/Businessprocess/Html/HtmlTagTest.php +++ b/test/php/library/Businessprocess/Html/HtmlTagTest.php @@ -7,7 +7,7 @@ use Icinga\Module\Businessprocess\Test\BaseTestCase; class HtmlTagTest extends BaseTestCase { - public function testH1isRendered() + public function testHeaderIsRendered() { $h1 = HtmlTag::h1('Hea & der'); $this->assertEquals( diff --git a/test/php/library/Businessprocess/Operators/AndOperatorTest.php b/test/php/library/Businessprocess/Operators/AndOperatorTest.php index c9b3047..93e8d80 100644 --- a/test/php/library/Businessprocess/Operators/AndOperatorTest.php +++ b/test/php/library/Businessprocess/Operators/AndOperatorTest.php @@ -102,7 +102,7 @@ class AndOperatorTest extends BaseTestCase ); } - public function testWhetherSimpleAndOperationWorks() + public function testSimpleAndOperationWorksCorrectly() { $bp = new BpConfig(); $bp->throwErrors(); @@ -128,7 +128,7 @@ class AndOperatorTest extends BaseTestCase ); } - public function testWhetherSimpleOrOperationWorks() + public function testSimpleOrOperationWorksCorrectly() { $bp = new BpConfig(); $bp->throwErrors(); @@ -143,7 +143,7 @@ class AndOperatorTest extends BaseTestCase $this->assertEquals('WARNING', $p->getStateName()); } - public function testWhetherPendingIsAccepted() + public function testPendingIsAccepted() { $bp = new BpConfig(); $host = $bp->createHost('localhost')->setState(99); @@ -173,7 +173,7 @@ class AndOperatorTest extends BaseTestCase ); } - public function testWhetherPendingIsWorseThanUpOrOk() + public function testPendingIsWorseThanUpOrOk() { $bp = new BpConfig(); $host = $bp->createHost('localhost')->setState(99);