Code Monkey home page Code Monkey logo

module-soap's Introduction

Stand With Ukraine

Codeception

Latest Stable Total Downloads StandWithUkraine Build status

Modern PHP Testing for everyone

Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides an absolutely new way of writing acceptance, functional and even unit tests.

Contributions

At Codeception we are glad to receive contributions from the community. If you want to send additions or fixes to the code or the documentation please check the Contributing guide.

At a Glance

Describe what you test and how you test it. Use PHP to write descriptions faster.

Run tests and see what actions were taken and what results were seen.

Sample test

$I->amOnPage('/');
$I->click('Pages');
$I->click('New');
$I->see('New Page');
$I->submitForm('form#new_page', ['title' => 'Movie Review']);
$I->see('page created'); // notice generated
$I->see('Movie Review','h1'); // head of page of is our title
$I->seeInCurrentUrl('pages/movie-review'); // slug is generated
$I->seeInDatabase('pages', ['title' => 'Movie Review']); // data is stored in database

For unit testing you can stay on classic PHPUnit tests, as Codeception can run them too.

Installation

Composer

php composer.phar require "codeception/codeception"

TODO: Document how to install the modules, e.g.

php composer.phar require "codeception/module-phpbrowser"

Phar

Download codecept.phar

Copy it into your project.

You can also make Codeception an executable and it put it into your $PATH, for instance:

wget https://codeception.com/codecept.phar

chmod +x codecept.phar

sudo mv codecept.phar /usr/local/bin/codecept

You can then run Codecept in the command line using: codecept bootstrap, codecept run, etc

Run CLI utility:

php codecept.phar

See also Installation | QuickStart

Getting Started

After you successfully installed Codeception, run this command:

codecept bootstrap

This will create a default directory structure and default test suites.

Documentation

View Documentation

The documentation source files can be found at https://github.com/Codeception/codeception.github.com/tree/master/docs/.

License

MIT

module-soap's People

Contributors

arhell avatar davertmik avatar exorus avatar jonphipps avatar lostintime avatar maxakawizard avatar naktibalda avatar noles avatar splinter89 avatar tavoniievez avatar zbateson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

module-soap's Issues

Issue in XML parser in SOAP function

If I do:

        $xml = new \Codeception\Util\XmlBuilder();
        $xml->name->val('test')->parent()
            ->catid->val(4);

        $I->sendSoapRequest('create', $xml);

The soap request works:

[Request] <soapenv:Envelope xmlns:ns="http://localhost/administrator.contact.1.0.0.wsdl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"></soapenv:Header><soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns:create><name>test</name><catid>4</catid></ns:create></soapenv:Body></soapenv:Envelope>

However if I do:

$I->sendSoapRequest('create', '<name>test</name><catid>4</catid>');

It says:


  [PHPUnit_Framework_Exception] DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 1  


The problem I think is here: https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Xml.php#L27-L57

The parser seems able to parse a xml string wrapped in an outer tag ():

$I->sendSoapRequest('create', '<user><name>test</name><catid>4</catid><user>');

but not like:

$I->sendSoapRequest('create', '<name>test</name><catid>4</catid>');

MTOM support

Hi guys,

I'm with problems in tests soap, when send a request is returned the following error in response:

DOMDocument::loadXML(): Start tag expected, '<' not found in Entity, line: 2

Note: I'm sending a pdf file (base64) in body request.

Can anybody help me?

Can't install on PHP 8 (RC3)

- codeception/module-soap 1.0.0 requires php >=5.6.0 <8.0 -> your php version (8.0.0RC3) does not satisfy that requirement.

Type incompatibility between module-soap and lib-innerbrowser

The type of the SOAP::$client (line 81) property is incompatible (its nullability) with PhpBrowser::$client (line 127)

InnerBrowser::_after tries to set its $client to null, but since the property is referenced by SOAP::$client (in SOAP::_before), this throws the error: Cannot assign null to reference held by property Codeception\Module\SOAP::$client of type Symfony\Component\BrowserKit\AbstractBrowser

codeception/module-soap 2.0.1
codeception/module-phpbrowser 2.0.2
codeception/lib-innerbrowser 2.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.