Skip to content

Commit

Permalink
slip
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 18, 2024
1 parent 7832a44 commit 86b25d8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":7},"times":{"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/existing_shell_model.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/existing_shell_task.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/invalid_shell_property.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::testExtensionIsLoaded":0,"ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":0,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_component_component.php:10":0.001,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/invalid_component_property.php:10":0,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::testExtensionIsLoaded":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/variable_reference.php:9":0.001,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/variable_reference.php:10":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/not_a_class.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/basic_model_string.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/basic_model_class_const_fetch.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/table_without_model.php:8":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":0.001,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/custom_model_behavior.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/invalid_model_property.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/existing_model_model.php:10":0}}
{"version":1,"defects":{"ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":7,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component.php:10":7,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_from_parent_controller.php:10":7,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_with_same_method_name_as_model.php:10":7,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_with_same_method_name_as_model.php:15":7,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/existing_controller_model.php:10":7},"times":{"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/existing_shell_model.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/existing_shell_task.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ShellClassPropertyExtension\/Fixture\/invalid_shell_property.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ShellClassPropertyExtension\\ShellClassPropertyExtensionTest::testExtensionIsLoaded":0,"ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":0,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_component_component.php:10":0.001,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/invalid_component_property.php:10":0,"ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::testExtensionIsLoaded":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/variable_reference.php:9":0.001,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/variable_reference.php:10":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/not_a_class.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/basic_model_string.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/basic_model_class_const_fetch.php:8":0,"PHPStanCakePHP2\\Tests\\ReturnTypeExtension\\ClassRegistryInitExtension\\ClassRegistryInitExtensionTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/ReturnTypeExtension\/ClassRegistryInitExtension\/Fixture\/table_without_model.php:8":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/core_model_behavior.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/custom_model_behavior.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/invalid_model_property.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/existing_model_model.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_component_component.php:10":0.001,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/invalid_component_property.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::testExtensionIsLoaded":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component.php:10":0.003,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_from_parent_controller.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_with_same_method_name_as_model.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassComponentPropertyExtension\\ClassComponentPropertyExtensionTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassComponentPropertyExtension\/Fixture\/existing_controller_component_with_same_method_name_as_model.php:15":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/existing_controller_model.php:10":0,"PHPStanCakePHP2\\Tests\\ClassPropertyExtension\\ClassModelsPropertyExtension\\ClassModelPropertyExtensionsTest::test#\/var\/www\/phpstan-cakephp-2\/tests\/ClassPropertyExtension\/ClassModelsPropertyExtension\/Fixture\/invalid_controller_property.php:10":0}}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public static function dataFileAsserts(): Iterator
{
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_component_component.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/invalid_component_property.php');

yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_controller_component.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_controller_component_from_parent_controller.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_controller_component_with_same_method_name_as_model.php');
}

public static function getAdditionalConfigFiles(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public static function dataFileAsserts(): \Iterator
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/custom_model_behavior.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/invalid_model_property.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_model_model.php');

yield from self::gatherAssertTypes(__DIR__ . '/Fixture/existing_controller_model.php');
yield from self::gatherAssertTypes(__DIR__ . '/Fixture/invalid_controller_property.php');
}

/**
Expand Down
34 changes: 0 additions & 34 deletions tests/Feature/ControllerExtensionsTest.php

This file was deleted.

0 comments on commit 86b25d8

Please sign in to comment.