Skip to content

Commit

Permalink
Tests assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Jun 14, 2024
1 parent de50784 commit 433874c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Tests/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public function testCheckDomain()

$this->assertTrue( count( $result->data ) == 3, 'Number of results is not 3' );

$this->assertTrue( isset( $result->data['yahoo.com'] ) == true, 'Result for yahoo.com not in result data');
$this->assertTrue( $result->data['yahoo.com']['sld'] == "yahoo", 'sld does not contain yahoo' );
$this->assertTrue( $result->data['yahoo.com']['tld'] == "com", 'tld does not contain com' );
$this->assertTrue( isset( $result->data['yahoo.com'] ) === true, 'Result for yahoo.com not in result data');
$this->assertTrue( $result->data['yahoo.com']['sld'] === "yahoo", 'sld does not contain yahoo' );
$this->assertTrue( $result->data['yahoo.com']['tld'] === "com", 'tld does not contain com' );
$this->assertTrue( $result->data['yahoo.com']['code'] == CheckResponse::REGISTERED, 'status is not registered' );

$this->assertTrue( isset( $result->data['yahoo-5391342341.com'] ) == true, 'Result for yahoo-5391342341.com not in result data' );
$this->assertTrue( $result->data['yahoo-5391342341.com']['sld'] == "yahoo-5391342341", 'sld does not contain yahoo-5391342341' );
$this->assertTrue( $result->data['yahoo-5391342341.com']['tld'] == "com", 'tld does not contain com' );
$this->assertTrue( isset( $result->data['yahoo-5391342341.com'] ) === true, 'Result for yahoo-5391342341.com not in result data' );
$this->assertTrue( $result->data['yahoo-5391342341.com']['sld'] === "yahoo-5391342341", 'sld does not contain yahoo-5391342341' );
$this->assertTrue( $result->data['yahoo-5391342341.com']['tld'] === "com", 'tld does not contain com' );
$this->assertTrue( $result->data['yahoo-5391342341.com']['code'] == CheckResponse::UNREGISTERED, 'status is not unregistered' );

$this->assertTrue( isset( $result->data['1.com'] ) );
Expand Down

0 comments on commit 433874c

Please sign in to comment.