Set up tests and change directory structure
This commit is contained in:
parent
7a0a02d6e5
commit
778bdfe6b8
@ -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
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
require __DIR__ . '../vendor/autoload.php';
|
||||
|
||||
namespace ActivityPub;
|
||||
|
10
test/ActivityPubTest.php
Normal file
10
test/ActivityPubTest.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ActivityPubTest extends TestCase {
|
||||
public function testItWillPass() {
|
||||
// TODO fix me
|
||||
$this->assertSame( 1, 0 );
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user