Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Annotation assertions not detected on Windows #26809

Copy link
Copy link
Closed
@greg0ire

Description

@greg0ire
Issue body actions
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.7

We have an issue on doctrine dbal with an assertion as annotation not being detected and the test being marked as risky on Windows:

This test did not perform any assertions
OK, but incomplete, skipped, or risky tests!

Here is a PR where I tried to isolate the issue as much as possible: doctrine/dbal#3087, leaving only a class and its test.

The test code:

<?php

namespace Doctrine\Tests\DBAL\Schema;

use Doctrine\DBAL\Foo;

class ColumnTest extends \PHPUnit\Framework\TestCase
{
    /**
     * @group legacy
     * @expectedDeprecation Hi
     */
    public function testThatIsGoingToBeRisky() : void
    {
        new Foo();
    }
}

The subsequent appveyor build: https://ci.appveyor.com/project/doctrine/dbal/build/1.0.114/job/3nke06rul3e04598

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.