Skip to content

Commit 46932a2

Browse files
Initial Commit
* New Repo * Basic `README.md` * Pre-flight Tests * Composer dependency management tool * gitignore with sane defaults
0 parents  commit 46932a2

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
composer.lock

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CD2 Base PHP Project (Experimental)
2+
3+
This is a 2017 effort to simplify the framework-based approach coming back to basics for PHP applications.
4+
5+
* No front-controller (at least to start with)
6+
* Loads Bootstrap / Autoloader before doing anything
7+
* Configures system
8+
9+
## Motivation(s)
10+
11+
* Lean approach to systems design
12+
* Cross-technology approach (something we are trying for 2017)
13+
* Well documented / tested from beginning

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "codesign2/project",
3+
"description": "Base Project for CODESIGN2 PHP work 2017",
4+
"type": "project",
5+
"require-dev": {
6+
"phpunit/phpunit": "^5.7",
7+
"hamcrest/hamcrest-php": "^2.0",
8+
"fzaninotto/faker": "^1.6"
9+
},
10+
"license": "AGPL",
11+
"authors": [
12+
{
13+
"name": "Lewis Cowles",
14+
"email": "lewiscowles@me.com"
15+
}
16+
],
17+
"minimum-stability": "stable",
18+
"require": {}
19+
}

phpunit.xml.dist

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit colors="true" bootstrap="vendor/autoload.php">
4+
<testsuites>
5+
<testsuite>
6+
<directory prefix="Test" suffix=".php">tests/</directory>
7+
</testsuite>
8+
</testsuites>
9+
<filter>
10+
<blacklist>
11+
<directory suffix=".php">vendor/</directory>
12+
</blacklist>
13+
<whitelist addUncoveredFilesFromWhitelist="true">
14+
<directory suffix=".php">private/</directory>
15+
</whitelist>
16+
<whitelist addUncoveredFilesFromWhitelist="true">
17+
<directory suffix=".php">public/</directory>
18+
</whitelist>
19+
</filter>
20+
</phpunit>

tests/TestPreFlight.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace cd2\tests;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class TestPreFlight extends TestCase
8+
{
9+
public function testShouldAlwaysBeTrue() {
10+
$this->assertTrue(true);
11+
}
12+
}
13+

0 commit comments

Comments
 (0)