Download the PHP package atoum/phpunit-extension without Composer

On this page you can find all versions of the php package atoum/phpunit-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpunit-extension

atoum/phpunit-extension Build Status

This atoum extensions allows to run your existing PHPUnit test suites with atoum's engine! If you want to migrate from PHPUnit to atoum, this extension is your best companion!

Goals

Your project already has PHPUnit test suites. You felt in love with atoum. You want to replace PHPUnit by atoum on your project. This extension will allow you to run your PHPUnit test suites with atoum, ensuring a smooth migration.

Install it

The extension is still a work in progress. You need to require a developpement branch of atoum.

Note: We need your help to complete the extension, so feel free to test the extension and submit issues when you found one.

Install extension using Composer:

Enable the extension using atoum configuration file:

Use it

By default, everything should work, simply run atoum as usual and your test suites will execute.

If you want to switch a test suite from PHPUnit to atoum, and get all the features from atoum, replace the parent class of your test suites from PHPUnit\Framework\TestCase to mageekguy\atoum\phpunit:

Enjoy!

Support

Helpers

Method Supported
fail
markTestIncomplete
markTestSkipped
Total 33%

Assertions

Method Supported
assertArrayHasKey(mixed $key, array $array[, string $message = ''])
assertArrayNotHasKey
assertClassHasAttribute
assertClassNotHasAttribute
assertArraySubset(array $subset, array $array[, bool $strict = '', string $message = ''])
assertClassHasStaticAttribute
assertClassNotHasStaticAttribute
assertContains(mixed $needle, iterable $haystack[, string $message = ''])
assertContains(string $needle, string $haystack[, string $message = '', boolean $ignoreCase = FALSE])
assertNotContains
assertContainsOnly(string $type, iterable $haystack[, boolean $isNativeType = NULL, string $message = ''])
assertContainsOnlyInstancesOf(string $classname, iterable $haystack[, string $message = ''])
assertNotContainsOnly
assertCount($expectedCount, $haystack[, string $message = ''])
assertNotCount($expectedCount, $haystack[, string $message = ''])
assertEmpty(mixed $actual[, string $message = ''])
assertNotEmpty(mixed $actual[, string $message = ''])
assertEqualXMLStructure
assertEquals(mixed $expected, mixed $actual[, string $message = ''])
assertEquals(float $expected, float $actual[, string $message = '', float $delta = 0])
assertEquals(DOMDocument $expected, DOMDocument $actual[, string $message = ''])
assertEquals(object $expected, object $actual[, string $message = ''])
assertEquals(array $expected, array $actual[, string $message = ''])
assertNotEquals
assertFalse(bool $condition[, string $message = ''])
assertNotFalse
assertFileEquals
assertFileNotEquals
assertFileExists
assertFileNotExists
assertGreaterThan(mixed $expected, mixed $actual[, string $message = ''])
assertGreaterThanOrEqual(mixed $expected, mixed $actual[, string $message = ''])
assertInfinite(mixed $variable[, string $message = ''])
assertFinite(mixed $variable[, string $message = ''])
assertInstanceOf($expected, $actual[, $message = ''])
assertNotInstanceOf($expected, $actual[, $message = ''])
assertInternalType($expected, $actual[, $message = ''])
assertNotInternalType
assertJsonFileEqualsJsonFile
assertJsonStringEqualsJsonFile
assertJsonStringEqualsJsonString
assertLessThan
assertLessThanOrEqual
assertNan(mixed $variable[, string $message = ''])
assertNull(mixed $variable[, string $message = ''])
assertNotNull(mixed $variable[, string $message = ''])
assertObjectHasAttribute(string $attribute[, string $message = ''])
assertObjectNotHasAttribute(string $attribute[, string $message = ''])
assertRegExp
assertNotRegExp
assertStringMatchesFormat
assertStringNotMatchesFormat
assertStringMatchesFormatFile
assertStringNotMatchesFormatFile
assertSame(mixed $expected, mixed $actual[, string $message = ''])
assertNotSame(mixed $expected, mixed $actual[, string $message = ''])
assertStringEndsWith
assertStringEndsNotWith
assertStringEqualsFile
assertStringNotEqualsFile
assertStringStartsWith
assertStringStartsNotWith
assertThat(mixed $value, PHPUnit_Framework_Constraint $constraint[, $message = ''])
assertTrue(bool $condition[, string $message = ''])
assertNotTrue
assertXmlFileEqualsXmlFile
assertXmlFileNotEqualsXmlFile
assertXmlStringEqualsXmlFile
assertXmlStringNotEqualsXmlFile
assertXmlStringEqualsXmlString
assertXmlStringNotEqualsXmlString
Total 42.25%

Classes

Class Supported Mapped to
PHPUnit\Framework\TestCase mageekguy\atoum\phpunit\test
PHPUnit\Framework\Constraint mageekguy\atoum\phpunit\constraint
Total 100%

Exceptions

Class Supported Mapped to
PHPUnit\Framework\AssertionFailedError mageekguy\atoum\asserter\exception
PHPUnit\Framework\Exception mageekguy\atoum\exceptions\runtime
PHPUnit\Framework\ExpectationFailedException mageekguy\atoum\phpunit\constraint\exception
Total 100%

Annotations

Annotation Supported Note
@author
@after
@afterClass
@backupGlobals
@backupStaticAttributes
@before
@beforeClass
@codeCoverageIgnore*
@covers Does only consider the class name.
@coversDefaultClass
@coversNothing
@dataProvider
@depends
@expectedException
@expectedExceptionCode
@expectedExceptionMessage
@expectedExceptionMessageRegExp
@group
@large Does not support strict-mode failures
@medium Does not support strict-mode failures
@preserveGlobalState
@requires
@runTestsInSeparateProcesses Does not preserve global state in child processes
@runInSeparateProcess Does not preserve global state in child processes
@small Does not support strict-mode failures
@test
@testdox
@ticket
@uses
Total 37.93%

Links

License

phpunit-extension is released under the BSD-3-Clause License. See the bundled LICENSE file for details.

atoum


All versions of phpunit-extension with dependencies

PHP Build Version
Package Version
Requires atoum/atoum Version dev-virtual-hooks as 3.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package atoum/phpunit-extension contains the following files

Loading the files please wait ....