Add more tests for SpecificMethodsRector

This commit is contained in:
Gabriel Caruso 2017-12-19 06:02:40 -02:00
parent 10d139b282
commit bd48186669
2 changed files with 16 additions and 0 deletions

View File

@ -5,5 +5,13 @@ final class MyTest extends \PHPUnit\Framework\TestCase
public function test()
{
$this->assertIsReadable('...', 'second argument');
$this->assertArrayHasKey('...', ['...'], 'second argument');
$this->assertEmpty('...', 'second argument');
$this->assertFileExists('...', 'second argument');
$this->assertDirectoryExists('...', 'second argument');
$this->assertInfinite('...', 'second argument');
$this->assertNull('...', 'second argument');
$this->assertIsWritable('...', 'second argument');
$this->assertNan('...', 'second argument');
}
}

View File

@ -5,5 +5,13 @@ final class MyTest extends \PHPUnit\Framework\TestCase
public function test()
{
$this->assertTrue(is_readable('...'), 'second argument');
$this->assertTrue(array_key_exists('...', ['...']), 'second argument');
$this->assertTrue(empty('...'), 'second argument');
$this->assertTrue(file_exists('...'), 'second argument');
$this->assertTrue(is_dir('...'), 'second argument');
$this->assertTrue(is_infinite('...'), 'second argument');
$this->assertTrue(is_null('...'), 'second argument');
$this->assertTrue(is_writable('...'), 'second argument');
$this->assertTrue(is_nan('...'), 'second argument');
}
}