Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

architecture improvement + unit tests + cs fix #5

Merged
merged 1 commit into from
Dec 11, 2014
Merged

architecture improvement + unit tests + cs fix #5

merged 1 commit into from
Dec 11, 2014

Conversation

mhor
Copy link
Owner

@mhor mhor commented Dec 10, 2014

No description provided.

@mhor mhor force-pushed the unit_test branch 5 times, most recently from 13da6cd to 973882d Compare December 11, 2014 08:14
@mhor mhor changed the title architecture improvement + unit tests architecture improvement + unit tests + cs fix Dec 11, 2014
mhor added a commit that referenced this pull request Dec 11, 2014
architecture improvement / unit tests / cs fix
@mhor mhor merged commit 5dae50d into master Dec 11, 2014
@mhor mhor deleted the unit_test branch December 11, 2014 08:32
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0e0511f on unit_test into * on master*.

padre added a commit to padre/php-mediainfo that referenced this pull request Jun 10, 2022
In a video, the following instruction generates an exception:

$mediaInfoContainer = $mediaInfo->getInfo($url);

The reason for this is that the Mode class receives an (empty) array as parameter.

This is the log:

Mhor\MediaInfo\Attribute\Mode::__construct(): Argument mhor#2 ($fullName) must be of type string, array given, called in /var/app/current/vendor/mhor/php-mediainfo/src/Checker/ModeChecker.php on line 22 {"userId":13,"exception":"[object] (TypeError(code: 0): Mhor\\MediaInfo\\Attribute\\Mode::__construct(): Argument mhor#2 ($fullName) must be of type string, array given, called in /var/app/current/vendor/mhor/php-mediainfo/src/Checker/ModeChecker.php on line 22 at /var/app/current/vendor/mhor/php-mediainfo/src/Attribute/Mode.php:25)
[stacktrace]
#0 /var/app/current/vendor/mhor/php-mediainfo/src/Checker/ModeChecker.php(22): Mhor\\MediaInfo\\Attribute\\Mode->__construct('    0', Array)
mhor#1 /var/app/current/vendor/mhor/php-mediainfo/src/Factory/AttributeFactory.php(27): Mhor\\MediaInfo\\Checker\\ModeChecker->create(Array)
mhor#2 /var/app/current/vendor/mhor/php-mediainfo/src/Builder/MediaInfoContainerBuilder.php(71): Mhor\\MediaInfo\\Factory\\AttributeFactory::create('writing_library', Array)
mhor#3 /var/app/current/vendor/mhor/php-mediainfo/src/Builder/MediaInfoContainerBuilder.php(53): Mhor\\MediaInfo\\Builder\\MediaInfoContainerBuilder->addAttributes(Object(Mhor\\MediaInfo\\Type\\Audio), Array)
mhor#4 /var/app/current/vendor/mhor/php-mediainfo/src/Parser/MediaInfoOutputParser.php(49): Mhor\\MediaInfo\\Builder\\MediaInfoContainerBuilder->addTrackType('Audio', Array)
mhor#5 /var/app/current/vendor/mhor/php-mediainfo/src/MediaInfo.php(44): Mhor\\MediaInfo\\Parser\\MediaInfoOutputParser->getMediaInfoContainer(false)
mhor#6 /var/app/current/app/Http/Controllers/Backend/MediaController.php(103): Mhor\\MediaInfo\\MediaInfo->getInfo('https://d3q5g9h...')
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.

2 participants