Skip to content

Commit c517125

Browse files
committed
test class renamed.
1 parent a51dcb0 commit c517125

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.phpunit.result.cache
33
/build/
44
/composer.lock
5+
/nbproject/private/

nbproject/project.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
auxiliary.org-netbeans-modules-php-smarty.smarty-framework=false
2+
include.path=${php.global.include.path}
3+
php.version=PHP_82
4+
source.encoding=UTF-8
5+
src.dir=.
6+
tags.asp=false
7+
tags.short=false
8+
web.root=.

nbproject/project.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.php.project</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/php-project/1">
6+
<name>syslogic/php-cloudfunctions-quickstart</name>
7+
</data>
8+
</configuration>
9+
</project>

src/CloudFunctions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616
class CloudFunctions {
1717

18-
/** On HTTPS */
18+
/** On HTTP Request */
1919
public static function on_https( ServerRequestInterface $request ): ResponseInterface {
2020
$params = $request->getQueryParams();
2121
$body = sprintf('Hello, %s!', $params['name'] ?? 'World');
2222
return (new Response())
2323
->withBody(Utils::streamFor($body))
24-
->withStatus(200);
24+
->withStatus(200, 'OK');
2525
}
2626

2727
/** On Pub/Sub Event */
@@ -33,7 +33,7 @@ public static function on_pubsub( CloudEventInterface $event ): void {
3333
fwrite($log, "Hello, $name!" . PHP_EOL);
3434
}
3535

36-
/** On GCS Event */
36+
/** On Cloud Storage Event */
3737
public static function on_gcs( CloudEventInterface $event ): void {
3838
$log = fopen(getenv('LOGGER_OUTPUT') ?: 'php://stdout', 'wb');
3939
$data = $event->getData();

tests/SimpleTest.php renamed to tests/CloudFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @author Martin Zeitler
1212
* @version 1.0.0
1313
*/
14-
class SimpleTest extends TestCase {
14+
class CloudFunctionsTest extends TestCase {
1515

1616
private static string $project_id;
1717
private static array $json_data;

0 commit comments

Comments
 (0)