Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Oct 23, 2023
1 parent 8caa89f commit 4c45509
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/DeferredTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function testGetFromEmptyReturnNull(bool $false = false): void
}

/**
* @return iterable<int>
* @return iterable<null|int>
*/
private function yieldsNothing(bool $false = false): iterable
{
Expand All @@ -102,6 +102,11 @@ public function testThrowsSame(): void
} catch (\InvalidArgumentException $e2) {
$this->assertSame($e, $e2);
}

$reflectionClass = new \ReflectionClass($later);
$property = $reflectionClass->getProperty('input');
$property->setAccessible(true);
$this->assertNull($property->getValue($later));
}

/**
Expand Down

0 comments on commit 4c45509

Please sign in to comment.