Skip to content

Commit 0827df8

Browse files
committed
peachpie 1.0.0-preview4
1 parent dab6fb1 commit 0827df8

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PhpUnitVersion Condition="$(PhpUnitVersion) == ''">9.2.6</PhpUnitVersion>
5-
<VersionSuffix>preview3</VersionSuffix>
5+
<VersionSuffix>preview4</VersionSuffix>
66
<PackageReadmePath>$(MSBuildThisFileDirectory)README.md</PackageReadmePath>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<PackageProjectUrl>https://github.com/peachpiecompiler/phpunit-testadapter</PackageProjectUrl>

NuGet.Config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<add key="repositoryPath" value="./packages" />
55
</config>
66
<packageSources>
7-
<remove key="peachpie.io(public)" />
7+
<clear />
8+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
89
<add key="peachpie.io(public)" value="https://feed.peachpie.io/public/v3/index.json" />
910
</packageSources>
1011

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ The test project will be a .NET executable application (e.g. TargetFramework `ne
1616
**`lib.msbuildproj`**:
1717

1818
```xml
19-
<Project Sdk="Peachpie.NET.Sdk/1.0.0-preview3">
19+
<Project Sdk="Peachpie.NET.Sdk/1.0.0-preview4">
2020
<PropertyGroup>
2121
<TargetFramework>netcoreapp3.1</TargetFramework>
2222
</PropertyGroup>
2323
<ItemGroup>
2424
<Compile Include="**/*.php" />
2525
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
26-
<PackageReference Include="PHPUnit.TestAdapter" Version="9.2.6-preview3" />
26+
<PackageReference Include="PHPUnit.TestAdapter" Version="9.2.6-preview4" />
2727
</ItemGroup>
2828
</Project>
2929
```

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"msbuild-sdks": {
3-
"Peachpie.NET.Sdk": "1.0.0-preview3"
3+
"Peachpie.NET.Sdk": "1.0.0-preview4"
44
}
55
}

src/PHPUnit.TestAdapter/TestReporterExtension.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public TestReporterExtension(Context ctx)
2424
_testRunContext = ctx.TryGetProperty<TestRunContext>() ?? throw new InvalidOperationException();
2525
}
2626

27-
public void executeBeforeTest([NotNull] string test) =>
27+
public void executeBeforeTest(string test) =>
2828
_testRunContext.FrameworkHandle.RecordStart(GetTestCase(test));
2929

30-
public void executeAfterSuccessfulTest([NotNull] string test, double time) =>
30+
public void executeAfterSuccessfulTest(string test, double time) =>
3131
ReportOutcome(test, TestOutcome.Passed, time: time);
3232

33-
public void executeAfterTestError([NotNull] string test, [NotNull] string message, double time) =>
33+
public void executeAfterTestError(string test, string message, double time) =>
3434
ReportOutcome(test, TestOutcome.Failed, message, time);
3535

36-
public void executeAfterTestFailure([NotNull] string test, [NotNull] string message, double time) =>
36+
public void executeAfterTestFailure(string test, string message, double time) =>
3737
ReportOutcome(test, TestOutcome.Failed, message, time);
3838

39-
public void executeAfterSkippedTest([NotNull] string test, [NotNull] string message, double time) =>
39+
public void executeAfterSkippedTest(string test, string message, double time) =>
4040
ReportOutcome(test, TestOutcome.Skipped, message, time);
4141

4242
private void ReportOutcome(string phpTestName, TestOutcome outcome, string message = null, double time = 0.0)

0 commit comments

Comments
 (0)