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

api-platform / core / 10639694367

30 Aug 2024 10:03PM UTC coverage: 7.667% (+0.7%) from 6.957%
10639694367

push

github

web-flow
Merge 3.4

Merge 3.4

0 of 165 new or added lines in 5 files covered. (0.0%)

7500 existing lines in 290 files now uncovered.

12514 of 163211 relevant lines covered (7.67%)

22.86 hits per line

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

0.0
/src/Metadata/Tests/Util/ReflectionTest.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
namespace ApiPlatform\Metadata\Tests\Util;
15

16
use ApiPlatform\Metadata\Util\Reflection;
17
use PHPUnit\Framework\TestCase;
18

19
/**
20
 * @author Amrouche Hamza <hamza.simperfit@gmail.com>
21
 */
22
class ReflectionTest extends TestCase
23
{
24
    public function testWithGoodMethodName(): void
25
    {
NEW
26
        $methodName = 'addGerard';
×
NEW
27
        $reflection = new Reflection();
×
NEW
28
        $return = $reflection->getProperty($methodName);
×
NEW
29
        $this->assertSame($return, 'Gerard');
×
30
    }
31

32
    public function testWithBadMethodName(): void
33
    {
NEW
34
        $methodName = 'delGerard';
×
NEW
35
        $reflection = new Reflection();
×
NEW
36
        $return = $reflection->getProperty($methodName);
×
NEW
37
        $this->assertNotEquals($return, 'Gerard');
×
NEW
38
        $this->assertSame($return, null);
×
39
    }
40
}
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

© 2025 Coveralls, Inc