summaryrefslogtreecommitdiff
path: root/tests/simple_unit/Soap
diff options
context:
space:
mode:
authorctrlaltca <ctrlaltca@gmail.com>2014-08-26 16:59:21 +0200
committerctrlaltca <ctrlaltca@gmail.com>2014-08-26 16:59:21 +0200
commit74b31be9515eddfa63005d6760614badfaba9fea (patch)
tree47c952901dcb5eccd6dd8b7c6ee7e0b6bf176510 /tests/simple_unit/Soap
parent2b11341614ac4a15be697fa8acad07055154ac54 (diff)
parent0c5026b55cde5c104f10686afd8b441568175d38 (diff)
Merge pull request #530 from pradosoft/prado-3.2.43.2.4prado-3.2
Backports for Prado 3.2.4
Diffstat (limited to 'tests/simple_unit/Soap')
-rw-r--r--tests/simple_unit/Soap/ContactManager.php34
-rw-r--r--tests/simple_unit/Soap/SoapTestCase.php3
2 files changed, 17 insertions, 20 deletions
diff --git a/tests/simple_unit/Soap/ContactManager.php b/tests/simple_unit/Soap/ContactManager.php
index 290063b3..2fbeec48 100644
--- a/tests/simple_unit/Soap/ContactManager.php
+++ b/tests/simple_unit/Soap/ContactManager.php
@@ -23,12 +23,12 @@ class ContactManager{
$Contact->email = "me@you.com";
$Contact->id = 1;
$Contact->name ="me";
-
+
$ret[] = $Contact;
//debugObject("Contacten: ",$ret);
return $ret;
}
-
+
/**
* Gets the Contact with the given id.
* @param int $id The id
@@ -48,7 +48,7 @@ class ContactManager{
public function newContact() {
return new Contact();
}
-
+
/**
* Saves a given Contact
* @param Contact $Contact
@@ -60,7 +60,7 @@ class ContactManager{
//$Contact->save();
return true;
}
-
+
/**
* @return mixed
* @soapmethod
@@ -69,7 +69,7 @@ class ContactManager{
{
return array(array(1,2), array("12", 1.2));
}
-
+
/**
* @return array
* @soapmethod
@@ -92,13 +92,13 @@ class ContactManager{
*/
class Contact{
- /**
+ /**
* @var int $id
* @soapproperty
*/
public $id;
-
- /**
+
+ /**
* @var string $name
* @soapproperty
*/
@@ -110,10 +110,10 @@ class Contact{
public $address;
/** @var string $email
- * @soapproperty
+ * @soapproperty
*/
public $email;
-
+
/**
* saves a Contact
*
@@ -134,24 +134,22 @@ class Contact{
*/
class Address{
/** @var string $street
- * @soapproperty
+ * @soapproperty
*/
public $street;
-
+
/** @var string $nr
* @soapproperty
*/
public $nr;
-
+
/** @var string $zipcode
* @soapproperty
*/
- public $zipcode;
-
+ public $zipcode;
+
/** @var string $city
* @soapproperty
*/
- public $city;
+ public $city;
}
-
-?> \ No newline at end of file
diff --git a/tests/simple_unit/Soap/SoapTestCase.php b/tests/simple_unit/Soap/SoapTestCase.php
index fe151b04..3aaa60d3 100644
--- a/tests/simple_unit/Soap/SoapTestCase.php
+++ b/tests/simple_unit/Soap/SoapTestCase.php
@@ -35,7 +35,7 @@ class SoapTestCase extends UnitTestCase
{
try
{
- $result = $this->getClient()->getContact(1);
+ $result = $this->getClient()->getContact(1);
$this->fail();
}
catch (SoapFault $f)
@@ -88,4 +88,3 @@ class SoapTestCase extends UnitTestCase
}
}
-?>