tests/Assertions/AssertEmptyTest.php
/**
     * Test assertion with not allowed modifier.
     *
     * @dataProvider assertionWithNotAllowedModifierDataProvider
     *
     * @param int $modifiers                The modifiers.
     * @param int $expectedInvalidModifiers The expected invalid modifiers.
     */
Test assertion with not allowed modifier.

@param int $modifiers                The modifiers.
@param int $expectedInvalidModifiers The expected invalid modifiers.
Test assertion with not allowed modifier . @param int $modifiers The modifiers . @param int $expectedInvalidModifiers The expected invalid modifiers .
public function testAssertionWithNotAllowedModifier(int $modifiers, int $expectedInvalidModifiers)
    {
        $exception = null;
        try {
            new AssertEmpty(new FileLocation(FilePath::parse('/tmp/tests'), 10), new Modifiers($modifiers));
        } catch (NotAllowedModifierException $exception) {
        }
        self::assertTrue($exception->getModifiers()->equals(new Modifiers($expectedInvalidModifiers)));
    }
public function testAssertionWithNotAllowedModifier ( int $ modifiers , int $ expectedInvalidModifiers ) { $ exception = null ; try { new AssertEmpty ( new FileLocation ( FilePath :: parse ( '/tmp/tests' ) , 10 ) , new Modifiers ( $ modifiers ) ) ; } catch ( NotAllowedModifierException $ exception ) { } self :: assertTrue ( $ exception -> getModifiers ( ) -> equals ( new Modifiers ( $ expectedInvalidModifiers ) ) ) ; }
Test assertion with not allowed modifier.
Test assertion with not allowed modifier .