Page MenuHomeWickedGov Phorge

HamcrestPHPUnitIntegration.php
No OneTemporary

Size
432 B
Referenced Files
None
Subscribers
None

HamcrestPHPUnitIntegration.php

<?php
/**
* Copyright (C) 2018 Kunal Mehta <legoktm@debian.org>
*
* @license GPL-2.0-or-later
*/
/**
* @since 1.31
*/
trait HamcrestPHPUnitIntegration {
/**
* Wrapper around Hamcrest's assertThat, which marks the assertion
* for PHPUnit so the test is not marked as risky
* @param mixed ...$args
*/
public function assertThatHamcrest( ...$args ) {
assertThat( ...$args );
$this->addToAssertionCount( 1 );
}
}

File Metadata

Mime Type
text/x-php
Expires
Oct 9 2026, 17:17 (7 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7e/83/f01dd95f0e529a059d2feb1ae964
Default Alt Text
HamcrestPHPUnitIntegration.php (432 B)

Event Timeline