Skip to content

__DIR__ Typo fixed#3

Closed
pborreli wants to merge 1 commit intomagento:masterfrom
pborreli:patch-1
Closed

__DIR__ Typo fixed#3
pborreli wants to merge 1 commit intomagento:masterfrom
pborreli:patch-1

Conversation

@pborreli
Copy link
Copy Markdown

It's dirname(__FILE__) or __DIR__, not both.

@pborreli
Copy link
Copy Markdown
Author

closing as it's not a bug actually.

searching for the directory of a directory can look weird to me but is a feature here.

@pborreli pborreli closed this Dec 14, 2011
@WouterSteen WouterSteen mentioned this pull request Oct 3, 2014
@askwhyweb askwhyweb mentioned this pull request Dec 18, 2014
@sivajik34 sivajik34 mentioned this pull request Jan 2, 2015
@cframery cframery mentioned this pull request Jan 7, 2015
@nabeelfocus nabeelfocus mentioned this pull request Jan 3, 2024
5 tasks
@alicedfisheye alicedfisheye mentioned this pull request May 14, 2024
5 tasks
@FabXav FabXav mentioned this pull request Oct 11, 2024
5 tasks
magento-devops-reposync-svc pushed a commit that referenced this pull request Feb 5, 2026
Fixed 3 errors:
1. DateTest: Made providerGetValue() static
2. PaginationProcessorTest: Added setCurPage/setPageSize to onlyMethods
3. CustomizationTest: Replaced self::once()/self::never() with string representations

Error #1: Data Provider method not static
- providerGetValue() → public static function providerGetValue()

Error #2: MethodCannotBeConfiguredException for setCurPage/setPageSize
- Added missing methods to onlyMethods() array in AbstractDb mock

Error #3: Non-static method self::once() called statically in data provider
- Replaced self::once() → 'once', self::never() → 'never'
- Added MockCreationTrait import
- Used createInvocationMatcher() in test method to convert strings

Pattern: For data providers with matcher expectations, use string
representations and convert them in test methods with createInvocationMatcher()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants