Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 64f98ee

Browse files
committed
Initial commit--stubbing out the project
0 parents  commit 64f98ee

File tree

10 files changed

+192
-0
lines changed

10 files changed

+192
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/vendor
2+
/node_modules
3+
phpunit.xml
4+
/build
5+
composer.lock

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: php
2+
3+
php:
4+
- 5.5.9
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
10+
env:
11+
global:
12+
- setup=basic
13+
14+
matrix:
15+
include:
16+
- php: 5.5.9
17+
env: setup=lowest
18+
- php: 5.5.9
19+
env: setup=stable
20+
21+
sudo: false
22+
23+
install:
24+
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
25+
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
26+
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi
27+
28+
before_script: mkdir -p build/logs
29+
30+
script: vendor/bin/phpunit
31+
32+
after_script: if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then vendor/bin/coveralls -v -n; fi

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.0

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "spinen/laravel-mail-assertions",
3+
"description": "PHPUnit mail assertions for testing email in Laravel.",
4+
"keywords": [
5+
"email",
6+
"phpunit",
7+
"laravel",
8+
"library",
9+
"spinen"
10+
],
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Jimmy Puckett",
15+
"email": "jimmy.puckett@spinen.com"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.5.0",
20+
"illuminate/support": "~5.1.10|5.2.*"
21+
},
22+
"require-dev": {
23+
"mockery/mockery": "~0.9.1",
24+
"phpunit/phpunit": "~4.0",
25+
"psy/psysh": "~0.5.1",
26+
"satooshi/php-coveralls": "~0.6.1",
27+
"symfony/var-dumper": "~2.7|3.0.*"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Spinen\\MailAssertions\\": "src"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Spinen\\MailAssertions\\": "tests"
37+
}
38+
},
39+
"config": {
40+
"preferred-install": "dist"
41+
}
42+
}

nitpick.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ignore": [
3+
"tests/*"
4+
]
5+
}

phpunit.xml.dist

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
This is the "dist(ribution)" phpunit.xml.dist file. It sets the defaults that are then over written by any files in
5+
phpunit.xml, which is then over wrote by flags passed in via the command line. The plan is that this file is to be
6+
used by ci to do the full suit of tests, and a developer can copy this file to phpunit.xml to trim down some of the
7+
options.
8+
-->
9+
10+
<phpunit addUncoveredFilesFromWhitelist="true"
11+
backupGlobals="false"
12+
backupStaticAttributes="false"
13+
bootstrap="vendor/autoload.php"
14+
colors="true"
15+
convertErrorsToExceptions="true"
16+
convertNoticesToExceptions="true"
17+
convertWarningsToExceptions="true"
18+
processIsolation="false"
19+
processUncoveredFilesFromWhitelist="true"
20+
stopOnFailure="false"
21+
syntaxCheck="false"
22+
verbose="true">
23+
24+
<testsuites>
25+
<testsuite name="PHPUnit mail assertions for testing email in Laravel.">
26+
<directory>./tests/</directory>
27+
</testsuite>
28+
</testsuites>
29+
30+
<php>
31+
<!-- <env name="VARIABLE" value="value"/> -->
32+
</php>
33+
34+
<filter>
35+
<whitelist>
36+
<directory suffix=".php">src/</directory>
37+
<exclude>
38+
<!--<file>src/file.php</file>-->
39+
<directory suffix=".php">src/config</directory>
40+
</exclude>
41+
</whitelist>
42+
</filter>
43+
44+
<listeners>
45+
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
46+
</listeners>
47+
48+
<logging>
49+
<log type="coverage-html"
50+
target="./build/coverage"
51+
title="Garbage Man Suite"
52+
charset="UTF-8"
53+
yui="true"
54+
highlight="true"
55+
lowUpperBound="35"
56+
highLowerBound="70"/>
57+
<log type="coverage-clover" target="build/logs/clover.xml"/>
58+
<log type="json" target="./build/logs/logfile.json"/>
59+
<log type="junit" target="./build/logs/junit.xml"
60+
logIncompleteSkipped="true"/>
61+
</logging>
62+
</phpunit>

readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPINEN's Laravel Mail Assertions
2+
3+
NOTE: This is based off a video titled ["Testing Email With Custom Assertions"](https://laracasts.com/series/phpunit-testing-in-laravel/episodes/12) that Jeffery Way did on [Laracasts.com}(https://laracasts.com). If you do not have an account on that site, then you should. It is an amazing resource. We have just take that example & made it in an easy to install package. Thanks Jeffery!
4+
5+
[![Latest Stable Version](https://poser.pugx.org/spinen/laravel-mail-assertions/v/stable)](https://packagist.org/packages/spinen/laravel-mail-assertions)
6+
[![Total Downloads](https://poser.pugx.org/spinen/laravel-mail-assertions/downloads)](https://packagist.org/packages/spinen/laravel-mail-assertions)
7+
[![Latest Unstable Version](https://poser.pugx.org/spinen/laravel-mail-assertions/v/unstable)](https://packagist.org/packages/spinen/laravel-mail-assertions)
8+
[![Dependency Status](https://www.versioneye.com/php/spinen:laravel-mail-assertions/0.1.1/badge.svg)](https://www.versioneye.com/php/spinen:laravel-mail-assertions/0.1.1)
9+
[![License](https://poser.pugx.org/spinen/laravel-mail-assertions/license)](https://packagist.org/packages/spinen/laravel-mail-assertions)
10+
11+
PHPUnit mail assertions for testing email in Laravel.
12+
13+
## Build Status
14+
15+
| Branch | Status | Coverage | Code Quality |
16+
| ------ | :----: | :------: | :----------: |
17+
| Develop | [![Build Status](https://travis-ci.org/spinen/laravel-mail-assertions.svg?branch=develop)](https://travis-ci.org/spinen/laravel-mail-assertions) | [![Coverage Status](https://coveralls.io/repos/spinen/laravel-mail-assertions/badge.svg?branch=develop&service=github)](https://coveralls.io/github/spinen/laravel-mail-assertions?branch=develop) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=develop) |
18+
| Master | [![Build Status](https://travis-ci.org/spinen/laravel-mail-assertions.svg?branch=master)](https://travis-ci.org/spinen/laravel-mail-assertions) | [![Coverage Status](https://coveralls.io/repos/spinen/laravel-mail-assertions/badge.svg?branch=master&service=github)](https://coveralls.io/github/spinen/laravel-mail-assertions?branch=master) | [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/spinen/laravel-mail-assertions/?branch=master) |
19+
20+
## Install
21+
22+
Install Garbage Man:
23+
24+
```bash
25+
$ composer require spinen/laravel-mail-assertions
26+
```
27+
28+
## Using
29+

src/.gitkeep

Whitespace-only changes.

tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)