Set up tests and change directory structure

This commit is contained in:
Jeremy Dormitzer 2018-11-14 08:08:15 -05:00
parent 7a0a02d6e5
commit 778bdfe6b8
3 changed files with 20 additions and 2 deletions

View File

@ -8,8 +8,11 @@
"email": "jeremy@dormitzer.net",
"homepage": "https://jeremydormitzer.com",
"role": "Developer"
},
}
],
"scripts": {
"test": "phpunit test"
},
"repositories": [
{
"type": "vcs",
@ -22,6 +25,11 @@
"require-dev": {
"phpunit/phpunit": "^7.4"
},
"autoload": {
"psr-4": {
"ActivityPub\\": "src/"
}
},
"config": {
"sort-packages": true
}

View File

@ -1,5 +1,5 @@
<?php
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '../vendor/autoload.php';
namespace ActivityPub;

10
test/ActivityPubTest.php Normal file
View File

@ -0,0 +1,10 @@
<?php
use PHPUnit\Framework\TestCase;
class ActivityPubTest extends TestCase {
public function testItWillPass() {
// TODO fix me
$this->assertSame( 1, 0 );
}
}
?>