forked from National-Theatre/drupal-phpunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading Composer packages, updates README and adds CI test
- Loading branch information
Showing
3 changed files
with
71 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# .travis.yml - configuration file for the travis continuous integration service | ||
# see http://about.travis-ci.org/docs/user/languages/php for more hints | ||
# | ||
language: php | ||
|
||
# PHP versions to test against. | ||
# See: http://docs.travis-ci.com/user/languages/php/ | ||
php: | ||
- 5.6 | ||
- 7.1 | ||
|
||
install: | ||
- composer install | ||
script: | ||
- python -mjson.tool composer.json | ||
after_install: | ||
- composer show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,36 @@ | ||
PHPUnit wrapper for Drupal 7 | ||
============================ | ||
|
||
Hacked up version | ||
### Status | ||
|
||
Build status: ![National-Theatre/drupal-phpunit build status](https://api.travis-ci.org/National-Theatre/drupal-phpunit.svg?branch=master) | ||
|
||
### Prerequisites | ||
|
||
- Composer | ||
|
||
### Installation | ||
|
||
Include this package in your `composer.json` file as: | ||
|
||
{ | ||
"require": { | ||
"NT/drupal-phpunit": "dev-master" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/National-Theatre/drupal-phpunit.git" | ||
} | ||
], | ||
} | ||
|
||
### Usage | ||
|
||
To use this package in your tests, you need to extend your classes using `DrupalTestCase` class, for example: | ||
|
||
use NT\Drupal\Testing\PHPUnit\DrupalTestCase; | ||
|
||
class MyOwnTest extends DrupalTestCase { | ||
// Methods here. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
{ | ||
"name": "NT/drupal-phpunit", | ||
"description": "A library to integrate PHPUnit with Drupal", | ||
"keywords": ["testing", "phpunit", "drupal"], | ||
"type": "library", | ||
"authors": [ | ||
"description": "A library to integrate PHPUnit with Drupal 7", | ||
"keywords": ["testing", "phpunit", "drupal"], | ||
"type": "library", | ||
"authors": [ | ||
{ | ||
"name": "Royal National Theatre", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.3", | ||
"phpunit/phpunit": ">=3.7.1@stable", | ||
"behat/behat": ">=2.4@stable", | ||
"behat/mink": ">=1.4@stable", | ||
"behat/mink-extension": "*" | ||
], | ||
"require": { | ||
"php": ">=5.6", | ||
"phpunit/phpunit": ">=6.5@stable", | ||
"behat/behat": ">=2.4@stable", | ||
"behat/mink": ">=1.4@stable", | ||
"behat/mink-extension": "*" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"NT\\Drupal\\Testing": "src" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"NT\\Drupal\\Testing": "src" | ||
}, | ||
"classmap": [ | ||
"src/NT/Drupal/Testing/PHPUnit/", | ||
"src/NT/Drupal/Testing/Fixtures/" | ||
] | ||
} | ||
} | ||
"classmap": [ | ||
"src/NT/Drupal/Testing/PHPUnit/", | ||
"src/NT/Drupal/Testing/Fixtures/" | ||
] | ||
} | ||
} |