Skip to content

Commit

Permalink
Adding tests for helper functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilimic1 committed Oct 2, 2022
1 parent d74be82 commit 6aa6de1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ClassnamesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,10 @@ public function testToString() : void
$cn3 = new Classnames( 'foo bar baz' );
$this->assertEquals( 'foo bar baz', (string) $cn3 );
}

public function testHelperFunctionsExist() : void
{
$this->assertTrue( function_exists( 'Ilimic\Classnames\classnames' ) );
$this->assertTrue( function_exists( 'Ilimic\Classnames\cn' ) );
}
}

0 comments on commit 6aa6de1

Please sign in to comment.