Skip to content

Commit

Permalink
✅ TEST: Add new test
Browse files Browse the repository at this point in the history
  • Loading branch information
elie29 committed Feb 20, 2019
1 parent 3815b3e commit ca338ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
class Sample
{

public function __toString(): string
{
return __CLASS__;
}
}
5 changes: 4 additions & 1 deletion tests/SampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class SampleTest extends TestCase

public function testSample(): void
{
assertThat(new Sample(), anInstanceOf(Sample::class));
$sample = new Sample();

assertThat($sample, anInstanceOf(Sample::class));
assertThat((string) $sample, equalTo(Sample::class));
}
}

0 comments on commit ca338ec

Please sign in to comment.