Skip to content

Commit 2ef2a62

Browse files
committed
Added more tests
1 parent 6159587 commit 2ef2a62

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/User/PasswordTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ public function passwords()
3838
[Password::build('somepwd'), Password::build('somepwddif'), false]
3939
];
4040
}
41+
42+
public function testToStringMagicMethod()
43+
{
44+
$pwd = Password::build('securestpwd');
45+
$this->assertEquals('securestpwd', $pwd);
46+
}
4147
}

tests/User/UsernameTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,10 @@ public function usernames()
4646
[Username::fromString('dfernandez'), Username::fromString('tests'), false]
4747
];
4848
}
49+
50+
public function testToStringMagicMethod()
51+
{
52+
$username = Username::fromString('username');
53+
$this->assertEquals('username', $username);
54+
}
4955
}

0 commit comments

Comments
 (0)