Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
project infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
weyrick committed Oct 8, 2014
1 parent cd1f10e commit f14d4a7
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 67 deletions.
58 changes: 4 additions & 54 deletions .gitignore
@@ -1,54 +1,4 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/
phpunit.xml
composer.phar
composer.lock
vendor/
3 changes: 3 additions & 0 deletions Makefile
@@ -0,0 +1,3 @@
test:
vendor/bin/phpunit

11 changes: 7 additions & 4 deletions composer.json
Expand Up @@ -9,16 +9,16 @@
"authors": [
{
"name": "Shannon Weyrick",
"email": "sweyrick@nsone.net",
"email": "sweyrick@nsone.net"
}
],
"support": {
"issues": "https://github.com/nsone/nsone-php/issues"
"issues": "https://github.com/nsone/nsone-php/issues",
"source": "https://github.com/nsone/nsone-php"
},
"require": {
"php": ">=5.4.0",
"guzzle/guzzle": ">=3.7.0,<=3.9.9"
"guzzlehttp/guzzle": "4.*"
},

"suggest": {
Expand All @@ -29,9 +29,12 @@
}
},
"autoload-dev": {
"phpunit/phpunit": "4.*"
"psr-4": {
"NSONE\\Tests\\": "tests/"
}
},
"require-dev": {
"phpunit/phpunit": "4.*"
},
"extra": {
}
Expand Down
14 changes: 14 additions & 0 deletions phpunit.xml.dist
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/bootstrap.php"
colors="true">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
21 changes: 21 additions & 0 deletions src/Client.php
@@ -0,0 +1,21 @@
<?php

/**
* Copyright (c) 2014 NSONE, Inc
* Licensed under The MIT License (MIT). See LICENSE in project root
*
*/

namespace NSONE;

class Client
{

const VERSION = "0.1";

public function testing() {
print "hey there!\n";
}

}

9 changes: 0 additions & 9 deletions src/NSONE.php

This file was deleted.

16 changes: 16 additions & 0 deletions tests/FrameworkTest.php
@@ -0,0 +1,16 @@
<?php

namespace NSONE\Tests;

use NSONE\Client;

class FrameworkTest extends \PHPUnit_Framework_TestCase
{

public function testClient()
{
$nsone = new Client();
$this->assertTrue((bool)$nsone);
}

}
2 changes: 2 additions & 0 deletions tests/bootstrap.php
@@ -0,0 +1,2 @@
<?php
require __DIR__ . '/../vendor/autoload.php';

0 comments on commit f14d4a7

Please sign in to comment.