Skip to content

Commit

Permalink
Made data provider status; using parameter types instead of a DocBlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Feb 26, 2024
1 parent f7a9cb2 commit 2cd9746
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/Basic/IFrameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
final class IFrameTest extends TestCase
{
/**
* @param string $iframeIdentifier
* @param string $elementSelector
* @param string $elementContent
*
* @dataProvider iFrameDataProvider
*/
public function testIFrame($iframeIdentifier, $elementSelector, $elementContent): void
public function testIFrame(string $iframeIdentifier, string $elementSelector, string $elementContent): void
{
$this->getSession()->visit($this->pathTo('/iframe.html'));
$webAssert = $this->getAssertSession();
Expand All @@ -35,7 +31,7 @@ public function testIFrame($iframeIdentifier, $elementSelector, $elementContent)
/**
* @return array
*/
public function iFrameDataProvider()
public static function iFrameDataProvider()
{
return array(
'by name' => array('subframe_by_name', '#text', 'iFrame div text'),
Expand Down

0 comments on commit 2cd9746

Please sign in to comment.