add skelton
This commit is contained in:
parent
8f37eca66d
commit
a9c6a8a4d5
15
.editorconfig
Normal file
15
.editorconfig
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
; This file is for unifying the coding style for different editors and IDEs.
|
||||||
|
; More information at http://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/vendor
|
||||||
|
.phpintel/
|
||||||
|
coverage.clover
|
||||||
|
build/
|
19
.travis.yml
Normal file
19
.travis.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
language: php
|
||||||
|
dist: precise
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
|
||||||
|
## Cache composer
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- travis_retry composer self-update
|
||||||
|
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
|
||||||
|
|
||||||
|
script:
|
||||||
|
- vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-text --coverage-clover=coverage.clover
|
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Imap
|
||||||
|
====
|
||||||
|
:mailbox_with_mail: Access Mailbox Using PHP IMAP.
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/Clivern/Imap.svg?branch=master)](https://travis-ci.org/Clivern/Imap)
|
32
composer.json
Normal file
32
composer.json
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"name": "clivern/imap",
|
||||||
|
"type": "library",
|
||||||
|
"description": "Access Mailbox Using PHP IMAP",
|
||||||
|
"keywords": ["clivern", "imap"],
|
||||||
|
"license": "MIT",
|
||||||
|
"type": "project",
|
||||||
|
"homepage": "https://github.com/clivern/imap",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Clivern",
|
||||||
|
"email": "hello@clivern.com",
|
||||||
|
"homepage": "http://clivern.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.6.4"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~5.7"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Clivern\\Imap\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"Clivern\\Imap\\": "tests"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1333
composer.lock
generated
Normal file
1333
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
0
examples/.gitkeep
Normal file
0
examples/.gitkeep
Normal file
29
phpunit.xml.dist
Normal file
29
phpunit.xml.dist
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit bootstrap="./vendor/autoload.php"
|
||||||
|
backupGlobals="false"
|
||||||
|
backupStaticAttributes="false"
|
||||||
|
colors="true"
|
||||||
|
verbose="true"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
processIsolation="false"
|
||||||
|
stopOnFailure="false">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="clivern Test Suite">
|
||||||
|
<directory>tests</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory suffix=".php">src/</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
<logging>
|
||||||
|
<log type="tap" target="build/report.tap"/>
|
||||||
|
<log type="junit" target="build/report.junit.xml"/>
|
||||||
|
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
|
||||||
|
<log type="coverage-text" target="build/coverage.txt"/>
|
||||||
|
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
||||||
|
</logging>
|
||||||
|
</phpunit>
|
0
src/Contracts/.gitkeep
Normal file
0
src/Contracts/.gitkeep
Normal file
0
src/Core/.gitkeep
Normal file
0
src/Core/.gitkeep
Normal file
19
src/MailBox.php
Normal file
19
src/MailBox.php
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author clivern <hello@clivern.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Clivern\Imap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MailBox Class
|
||||||
|
*
|
||||||
|
* @package Clivern\Imap
|
||||||
|
*/
|
||||||
|
class MailBox
|
||||||
|
{
|
||||||
|
public function get()
|
||||||
|
{
|
||||||
|
return "test";
|
||||||
|
}
|
||||||
|
}
|
22
tests/MailBoxTest.php
Normal file
22
tests/MailBoxTest.php
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @author clivern <hello@clivern.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MailBox Class Test
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class MailBoxTest extends TestCase
|
||||||
|
{
|
||||||
|
public function testGet()
|
||||||
|
{
|
||||||
|
$mb = new \Clivern\Imap\MailBox();
|
||||||
|
$this->assertEquals($mb->get(), 'test');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue