Skip to content

Commit 156101d

Browse files
author
Bauffman
committed
Adds a few more assertions for Token::test
1 parent b55ead0 commit 156101d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/TokenTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ public function testTest()
6767
// no values
6868
$this->assertTrue($token->test(Token::NAME));
6969

70+
// exactly the right value
71+
$this->assertTrue($token->test(Token::NAME, '$blub'));
72+
73+
// wrong value
74+
$this->assertFalse($token->test(Token::NAME, '$foo'));
75+
7076
// no valid values
7177
$this->assertFalse($token->test(Token::NAME, array('one', 'two', 'three')));
7278

0 commit comments

Comments
 (0)