phoenixrvd/phpunit-assert-log-entry

View on GitHub
src/Constraint/HasNoRecords.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PhoenixRVD\PHPUnitLogAssertions\Constraint;

class HasNoRecords extends Constraint
{
    public function toString()
    {
        return sprintf('log must not contain %ss', $this->getLogLevel());
    }

    protected function matches($other)
    {
        return !$this->callHandlerMethod([]);
    }
}