test() public méthode

Tests the expectation. Always true.
public test ( mixed $compare ) : boolean
$compare mixed Ignored.
Résultat boolean True.
 function testSimpleInteger()
 {
     $expectation = new AnythingExpectation();
     $this->assertTrue($expectation->test(33));
     $this->assertTrue($expectation->test(false));
     $this->assertTrue($expectation->test(null));
 }
 function testSimpleInteger()
 {
     $expectation = new AnythingExpectation();
     $this->assertTrue($expectation->test(33));
     $this->assertPattern('/matches.*33/i', $expectation->testMessage(33));
 }