Port ExceptionHandler from old Aitemu and created main class.

This commit is contained in:
flash 2018-01-02 20:37:13 +01:00
parent efb23a1782
commit b8b2a0561b
2 changed files with 3 additions and 1 deletions

View file

@ -2,3 +2,5 @@
namespace Misuzu; namespace Misuzu;
require_once 'vendor/autoload.php'; require_once 'vendor/autoload.php';
Application::start()->debug(IO\Directory::exists(__DIR__ . '/vendor/phpunit/phpunit'));

View file

@ -42,7 +42,7 @@ class FileSystemTest extends TestCase
public function testWriteFile() public function testWriteFile()
{ {
$file = new FileStream(WORKING_DIR . '/file', FileStream::MODE_TRUNCATE, false); $file = new FileStream(WORKING_DIR . '/file', FileStream::MODE_TRUNCATE);
$this->assertInstanceOf(FileStream::class, $file); $this->assertInstanceOf(FileStream::class, $file);
$file->write('misuzu'); $file->write('misuzu');