How to test PHPAzure samples(test cases)?

Dec 3, 2009 at 12:33 PM

I've deployed test folder in apache(WAMP Server2.0) and while testing samples provided in PHPAzure(test folder) facing: (http://localhost/tests/AllTests.php)

WAMP server using PHP3.0 Output:==>
=======================
PHPUnit 3.4.3 by Sebastian Bergmann. .....................EEEEEEEEEEEEEEEEEEEEEEEEEE............. 60 / 105 ....EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEEEE Time: 5 seconds There were 66 errors: 1) Microsoft_WindowsAzure_BlobStorageTest::testContainerExists Function ereg() is deprecated 2) Microsoft_WindowsAzure_BlobStorageTest::testBlobExists Function ereg() is deprecated 3) Microsoft_WindowsAzure_BlobStorageTest::testCreateContainer Function ereg() is deprecated 4) Microsoft_WindowsAzure_BlobStorageTest::testGetContainerAcl Function ereg() is deprecated 5).....

WAMP server using PHP2.4 Output:==>
=======================
PHPUnit 3.4.3 by Sebastian Bergmann. .....................EEEEEEEEEEEEEEEEEEEEEEEEEE............. 60 / 105 ....EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEEEE Time: 4 seconds There were 66 errors: 1) Microsoft_WindowsAzure_BlobStorageTest::testContainerExists Microsoft_Http_Transport_Exception: cURL extension has to be loaded to use Microsoft_Http_Transport_Curl. 2) Microsoft_WindowsAzure_BlobStorageTest::testBlobExists Microsoft_Http_Transport_Exception: cURL extension has to be loaded to use Microsoft_Http_Transport_Curl. 3) ..........

Please suggest me a proper way to run these samples or is there any other samples provided with PHPAzure?

Coordinator
Dec 3, 2009 at 5:07 PM

First of all: cURL module needs to be loaded.

Next: with PHP3.0, are you aiming at 5.3.0?

Tutorials can be found at http://www.windowsazure4e.org/learn/ and http://phpazure.codeplex.com/wikipage?title=Getting%20Started&referringTitle=Home

Dec 7, 2009 at 5:37 AM

Thanks Marteenba!, I'm following http://www.windowsazure4e.org/learn/ link, its really helpful for the beginners.