Need advice about which tool to choose?Ask the StackShare community!

PHPUnit

2.2K
285
+ 1
14
Poltergeist

17
24
+ 1
0
Add tool

PHPUnit vs Poltergeist: What are the differences?

PHPUnit: Testing framework for PHP. PHPUnit is a programmer-oriented testing framework for PHP It is an instance of the xUnit architecture for unit testing frameworks.; Poltergeist: A PhantomJS driver for Capybara. Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS.

PHPUnit and Poltergeist belong to "Testing Frameworks" category of the tech stack.

PHPUnit and Poltergeist are both open source tools. PHPUnit with 14.3K GitHub stars and 1.75K forks on GitHub appears to be more popular than Poltergeist with 2.53K GitHub stars and 437 GitHub forks.

According to the StackShare community, PHPUnit has a broader approval, being mentioned in 43 company stacks & 30 developers stacks; compared to Poltergeist, which is listed in 6 company stacks and 4 developer stacks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of PHPUnit
Pros of Poltergeist
  • 5
    TDD Unit Testing
  • 2
    TDD Integration Testing
  • 2
    Software Quality
  • 2
    TDD Acceptance Testing
  • 1
    TDD Unit Testing
  • 1
    Unit Testing
  • 1
    The de facto standard for xUnit testing in PHP
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    Cons of PHPUnit
    Cons of Poltergeist
    • 1
      Mocked services require more effort and understanding
      Be the first to leave a con

      Sign up to add or upvote consMake informed product decisions

      What is PHPUnit?

      PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

      What is Poltergeist?

      Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use PHPUnit?
      What companies use Poltergeist?
      Manage your open source components, licenses, and vulnerabilities
      Learn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with PHPUnit?
      What tools integrate with Poltergeist?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to PHPUnit and Poltergeist?
      Codeception
      Full-stack testing framework for PHP. Run browsers tests, framework tests, APIs tests, unit tests with ease.
      Behat
      It is an open source Behavior-Driven Development framework for PHP. It is a tool to support you in delivering software that matters through continuous communication, deliberate discovery and test-automation.
      Kahlan
      It is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward.
      PhpSpec
      It is a tool which can help you write clean and working PHP code using behaviour driven development or BDD. BDD is a technique derived from test-first development.
      Selenium
      Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
      See all alternatives