atoum | The modern , simple and intuitive PHP unit testing framework | Unit Testing library

 by   atoum PHP Version: 4.1.0 License: Non-SPDX

kandi X-RAY | atoum Summary

kandi X-RAY | atoum Summary

atoum is a PHP library typically used in Testing, Unit Testing, Framework applications. atoum has no bugs, it has no vulnerabilities and it has medium support. However atoum has a Non-SPDX License. You can download it from GitHub, GitLab.

The modern, simple and intuitive PHP unit testing framework.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              atoum has a medium active ecosystem.
              It has 1430 star(s) with 159 fork(s). There are 43 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 62 open issues and 316 have been closed. On average issues are closed in 257 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of atoum is 4.1.0

            kandi-Quality Quality

              atoum has 0 bugs and 0 code smells.

            kandi-Security Security

              atoum has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              atoum code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              atoum has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              atoum releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 76912 lines of code, 6642 functions and 571 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed atoum and discovered the below as its top functions. This is intended to give you an instant insight into atoum implemented functionality, and help decide if they suit your requirements.
            • Generates code for mocked class method .
            • Opens a stream .
            • Check unit tests .
            • Runs the report .
            • Parse template .
            • Merge coverage .
            • Set the command argument handlers
            • Append a namespace token .
            • Enables an autorner .
            • Creates a file element .
            Get all kandi verified functions for this library.

            atoum Key Features

            No Key Features are available at this moment for atoum.

            atoum Examples and Code Snippets

            No Code Snippets are available at this moment for atoum.

            Community Discussions

            QUESTION

            Concerning test cases with Atoum for PHP code , how can I unit test a class which uses require_once?
            Asked 2019-May-07 at 07:52

            I can use Atoum to unit test a class as following:

            ...

            ANSWER

            Answered 2019-May-07 at 07:52

            Strange but it's really true!

            Atoum cares about ?> at the end of PHP files
            There should be nothing after ?>
            Even new line

            I replaced all ?> in all PHP files with space and the problem is solved

            Source https://stackoverflow.com/questions/56003768

            QUESTION

            Mocking a series of methods with atoum
            Asked 2017-Nov-29 at 14:19

            I am trying to design a Database($db) Mock with Atoum that would return different values depending on previous method calls (and arguments).

            I'm using PHP 5.6 and Atoum 3.2

            Here is what I tried:

            ...

            ANSWER

            Answered 2017-Nov-28 at 16:39

            I will give you some insight about your questions and hope give you some clue to find a way to solve it.

            So to validate that a mock method is not called, you can use 'call' with 'never'

            Source https://stackoverflow.com/questions/47530203

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install atoum

            You just have to download its PHAR archive and store it where you wish, for example under /path/to/project/tests/atoum.phar. This PHAR archive contains the latest development version to pass the totality of atoum's unit tests. atoum's source code is also available via the GitHub repository. To check if atoum works correctly with your configuration, you can execute all its unit tests. To do that, you just need to run the following command in your terminal:.

            Support

            In this case, the first thing you will want to do is confirm whether you have the latest version of the archive. You just need to download it again. If it still doesn't work, run the following command in a terminal window:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/atoum/atoum.git

          • CLI

            gh repo clone atoum/atoum

          • sshUrl

            git@github.com:atoum/atoum.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link