• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / whip / 7300735247

22 Dec 2023 02:07PM UTC coverage: 31.683% (+3.0%) from 28.713%
7300735247

push

github

web-flow
Merge pull request #157 from Yoast/move-to-namespace-v2

Move source classes to the `Yoast\WHIPv2` namespace

30 of 114 new or added lines in 18 files covered. (26.32%)

96 of 303 relevant lines covered (31.68%)

2.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exceptions/InvalidType.php
1
<?php
2

3
namespace Yoast\WHIPv2\Exceptions;
4

5
use Exception;
6

7
/**
8
 * Class InvalidType.
9
 */
10
class InvalidType extends Exception {
11

12
        /**
13
         * InvalidType constructor.
14
         *
15
         * @param string $property     Property name.
16
         * @param string $value        Property value.
17
         * @param string $expectedType Expected property type.
18
         */
19
        public function __construct( $property, $value, $expectedType ) {
×
NEW
20
                parent::__construct( \sprintf( '%s should be of type %s. Found %s.', $property, $expectedType, \gettype( $value ) ) );
×
21
        }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc