svn: /pear/packages/Net_Growl/trunk/tests/Growl/ ApplicationTest.php GntpMockTest.php GntpTest.php
| From: | Laurent Laville | Date: | Thu, 05 Apr 2012 10:02:09 +0000 |
| Subject: | svn: /pear/packages/Net_Growl/trunk/tests/Growl/ ApplicationTest.php GntpMockTest.php GntpTest.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-64623@lists.php.net to get a copy of this message | ||
farell Thu, 05 Apr 2012 10:02:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324848
Log:
Clarify the readibility of unit tests. Removed optional options
Changed paths:
U pear/packages/Net_Growl/trunk/tests/Growl/ApplicationTest.php
U pear/packages/Net_Growl/trunk/tests/Growl/GntpMockTest.php
U pear/packages/Net_Growl/trunk/tests/Growl/GntpTest.php
Modified: pear/packages/Net_Growl/trunk/tests/Growl/ApplicationTest.php
===================================================================
--- pear/packages/Net_Growl/trunk/tests/Growl/ApplicationTest.php 2012-04-05 09:47:49 UTC (rev
324847)
+++ pear/packages/Net_Growl/trunk/tests/Growl/ApplicationTest.php 2012-04-05 10:02:09 UTC (rev
324848)
@@ -29,9 +29,7 @@
$appIcon = '';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array();
@@ -60,9 +58,7 @@
$appIcon = '';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = '1-2-3';
@@ -91,9 +87,7 @@
$appIcon = '';
$password = false;
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = null;
@@ -122,9 +116,7 @@
$appIcon = false;
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = null;
Modified: pear/packages/Net_Growl/trunk/tests/Growl/GntpMockTest.php
===================================================================
--- pear/packages/Net_Growl/trunk/tests/Growl/GntpMockTest.php 2012-04-05 09:47:49 UTC (rev 324847)
+++ pear/packages/Net_Growl/trunk/tests/Growl/GntpMockTest.php 2012-04-05 10:02:09 UTC (rev 324848)
@@ -41,9 +41,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -95,9 +93,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -160,9 +156,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array();
@@ -193,9 +187,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array();
Modified: pear/packages/Net_Growl/trunk/tests/Growl/GntpTest.php
===================================================================
--- pear/packages/Net_Growl/trunk/tests/Growl/GntpTest.php 2012-04-05 09:47:49 UTC (rev 324847)
+++ pear/packages/Net_Growl/trunk/tests/Growl/GntpTest.php 2012-04-05 10:02:09 UTC (rev 324848)
@@ -41,9 +41,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -95,9 +93,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -151,9 +147,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array();
@@ -185,9 +179,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -216,9 +208,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -294,9 +284,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -407,9 +395,7 @@
$appIcon = '';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
);
$notifications = array(
@@ -490,9 +476,7 @@
$password = 'mamasam';
$debug = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'gntp.log';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
'debug' => $debug
);
@@ -530,9 +514,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
'timeout' => 'invalid value'
);
@@ -569,9 +551,7 @@
$password = 'mamasam';
$appIcon = dirname(dirname(__FILE__)) . '/_files/korganizer-128x128.png';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'gntpMock',
- 'port' => Net_Growl::GNTP_PORT,
'AppIcon' => $appIcon
);
@@ -611,9 +591,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'foo',
- 'port' => Net_Growl::GNTP_PORT
);
$notifications = array(
@@ -645,9 +623,7 @@
$appName = 'PHP GNTP Test';
$password = 'mamasam';
$options = array(
- 'host' => '127.0.0.1',
'protocol' => 'foo',
- 'port' => Net_Growl::GNTP_PORT
);
$notifications = array(