Línea 32... |
Línea 32... |
32 |
* @dataProvider check_pip_package_versions
|
32 |
* @dataProvider check_pip_package_versions
|
33 |
* @param string $actual A sample of the actual package version
|
33 |
* @param string $actual A sample of the actual package version
|
34 |
* @param string $required A sample of the required package version
|
34 |
* @param string $required A sample of the required package version
|
35 |
* @param int $result Expected value returned by the tested method
|
35 |
* @param int $result Expected value returned by the tested method
|
36 |
*/
|
36 |
*/
|
37 |
public function test_check_pip_package_version($actual, $required, $result) {
|
37 |
public function test_check_pip_package_version($actual, $required, $result): void {
|
38 |
$this->assertSame($result, \mlbackend_python\processor::check_pip_package_version($actual, $required));
|
38 |
$this->assertSame($result, \mlbackend_python\processor::check_pip_package_version($actual, $required));
|
39 |
}
|
39 |
}
|
Línea 40... |
Línea 40... |
40 |
|
40 |
|
41 |
/**
|
41 |
/**
|
42 |
* Check that the {@link \mlbackend_python\processor::check_pip_package_version()} can be called with single argument.
|
42 |
* Check that the {@link \mlbackend_python\processor::check_pip_package_version()} can be called with single argument.
|
43 |
*/
|
43 |
*/
|
Línea 44... |
Línea 44... |
44 |
public function test_check_pip_package_version_default() {
|
44 |
public function test_check_pip_package_version_default(): void {
|
45 |
|
45 |
|
46 |
$this->assertSame(-1, \mlbackend_python\processor::check_pip_package_version('0.0.1'));
|
46 |
$this->assertSame(-1, \mlbackend_python\processor::check_pip_package_version('0.0.1'));
|
47 |
$this->assertSame(0, \mlbackend_python\processor::check_pip_package_version(
|
47 |
$this->assertSame(0, \mlbackend_python\processor::check_pip_package_version(
|