Skip to content

Commit

Permalink
Drop internals testing
Browse files Browse the repository at this point in the history
This also does not invalidate any existing solution
  • Loading branch information
mk-mxp committed May 27, 2024
1 parent 310a657 commit f45aa4f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions exercises/practice/space-age/.meta/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ public function __construct($seconds)
$this->seconds = $seconds;
}

public function seconds()
{
return $this->seconds;
}

public function earth()
{
return $this->seconds / self::EARTH_YEAR_IN_SECONDS;
Expand Down
5 changes: 0 additions & 5 deletions exercises/practice/space-age/SpaceAge.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public function __construct(int $seconds)
throw new \BadMethodCallException("Implement the __construct method");
}

public function seconds(): int
{
throw new \BadMethodCallException("Implement the seconds method");
}

public function earth(): float
{
throw new \BadMethodCallException("Implement the earth method");
Expand Down
6 changes: 0 additions & 6 deletions exercises/practice/space-age/SpaceAgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ public static function setUpBeforeClass(): void

public const DELTA = 0.01;

public function testAgeInSeconds(): void
{
$age = new SpaceAge(1000000);
$this->assertEquals(1000000, $age->seconds());
}

/**
* uuid 84f609af-5a91-4d68-90a3-9e32d8a5cd34
* @testdox Age on Earth
Expand Down

0 comments on commit f45aa4f

Please sign in to comment.