Skip to content

Commit

Permalink
1.4 初期化スクリプトを作ろう
Browse files Browse the repository at this point in the history
  • Loading branch information
koh-tanaka committed Nov 6, 2017
1 parent 7bdcffe commit 327c998
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions phpunit.xml.dist
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<phpunit>
<phpunit
bootstrap="./tests/bootstrap.php"
>
<testsuite name="Application Test">
<directory>./tests/</directory>
<directory>./tests/src/</directory>
</testsuite>
</phpunit>
3 changes: 3 additions & 0 deletions tests/bootstrap.php
@@ -0,0 +1,3 @@
<?php
$reflection = new \ReflectionClass(\PHPUnit\Framework\Assert::class);
require_once dirname($reflection->getFileName()) . '/Assert/Functions.php';
2 changes: 1 addition & 1 deletion tests/src/HelloWorldTest.php
Expand Up @@ -8,6 +8,6 @@ class HelloWorldTest extends TestCase
{
public function testToString()
{
$this->assertEquals('Hello World!', (string)(new HelloWorld()));
assertEquals('Hello World!', (string)(new HelloWorld()));
}
}

0 comments on commit 327c998

Please sign in to comment.