repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/Operator.php | src/Databases/Query/Operator.php | <?php
namespace Notion\Databases\Query;
enum Operator: string
{
case After = "after";
case Before = "before";
case Contains = "contains";
case DoesNotContain = "does_not_contain";
case DoesNotEqual = "does_not_equal";
case EndsWith = "ends_with";
case Equals = "equals";
case GreaterTha... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/Condition.php | src/Databases/Query/Condition.php | <?php
namespace Notion\Databases\Query;
interface Condition
{
public function propertyType(): string;
public function propertyName(): string;
public function operator(): Operator;
public function value(): mixed;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/RelationFilter.php | src/Databases/Query/RelationFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class RelationFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Contains,
Operator::DoesNotContain,
Operator::IsEmpty,
Operator::IsNotEmpty,
];
private function __constr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/Filter.php | src/Databases/Query/Filter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
interface Filter
{
public function toArray(): array;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/MultiSelectFilter.php | src/Databases/Query/MultiSelectFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class MultiSelectFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Contains,
Operator::DoesNotContain,
Operator::IsEmpty,
Operator::IsNotEmpty,
];
private function __cons... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/CompoundFilter.php | src/Databases/Query/CompoundFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class CompoundFilter implements Filter
{
private const TYPE_AND = "and";
private const TYPE_OR = "or";
/** @var self::TYPE_* */
private string $type;
/** @var Filter[] */
private array $filters;
/** @param self::TYPE_* $typ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/RichText.php | src/Common/RichText.php | <?php
namespace Notion\Common;
/**
* @psalm-import-type AnnotationsJson from Annotations
* @psalm-import-type TextJson from Text
* @psalm-import-type MentionJson from Mention
* @psalm-import-type EquationJson from Equation
*
* @psalm-type RichTextJson = array{
* plain_text: string,
* href: string|nu... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Icon.php | src/Common/Icon.php | <?php
namespace Notion\Common;
use Notion\Exceptions\IconException;
class Icon
{
private function __construct(
public readonly Emoji|null $emoji,
public readonly File|null $file,
) {
if ($emoji === null && $file === null) {
throw IconException::bothNull();
}
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Annotations.php | src/Common/Annotations.php | <?php
namespace Notion\Common;
/** @psalm-type AnnotationsJson = array{
* bold: bool,
* italic: bool,
* strikethrough: bool,
* underline: bool,
* code: bool,
* color: string,
* }
*
* @psalm-immutable
*/
class Annotations
{
private function __construct(
public readon... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Text.php | src/Common/Text.php | <?php
namespace Notion\Common;
/**
* @psalm-type TextJson = array{ content: string, link?: array{ url: string } }
*
* @psalm-immutable
*/
class Text
{
private function __construct(
public readonly string $content,
public readonly string|null $url,
) {
}
/** @psalm-mutation-free */... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Date.php | src/Common/Date.php | <?php
namespace Notion\Common;
use DateTimeImmutable;
/**
* @psalm-type DateJson = array{ start: string, end?: string|null }
*
* @psalm-immutable
*/
class Date
{
public const FORMAT = "Y-m-d\TH:i:s.up";
private function __construct(
public readonly DateTimeImmutable $start,
public readon... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/MentionType.php | src/Common/MentionType.php | <?php
namespace Notion\Common;
enum MentionType: string
{
case Page = "page";
case Database = "database";
case User = "user";
case Date = "date";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Equation.php | src/Common/Equation.php | <?php
namespace Notion\Common;
/**
* @psalm-type EquationJson = array{ expression: string }
*
* @psalm-immutable
*/
class Equation
{
private function __construct(
public readonly string $expression
) {
}
public static function fromString(string $expression): self
{
return new ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/FileType.php | src/Common/FileType.php | <?php
namespace Notion\Common;
enum FileType: string
{
case Internal = "file";
case External = "external";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/RichTextType.php | src/Common/RichTextType.php | <?php
namespace Notion\Common;
enum RichTextType: string
{
case Equation = "equation";
case Mention = "mention";
case Text = "text";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/File.php | src/Common/File.php | <?php
namespace Notion\Common;
use DateTimeImmutable;
/**
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type FileJson = array{
* type: "external"|"file",
* file?: array{ url: string, expiry_time: string },
* external?: array{ url: string },
* name?: string,
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Mention.php | src/Common/Mention.php | <?php
namespace Notion\Common;
use Notion\Users\User;
/**
* @psalm-import-type UserJson from \Notion\Users\User
* @psalm-import-type DateJson from Date
*
* @psalm-type MentionJson = array{
* type: "page"|"database"|"user"|"date",
* page?: array{ id: string },
* database?: array{ id: string },
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/ParentType.php | src/Common/ParentType.php | <?php
namespace Notion\Common;
enum ParentType: string
{
case Database = "database_id";
case Page = "page_id";
case Block = "block_id";
case Workspace = "workspace";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Color.php | src/Common/Color.php | <?php
namespace Notion\Common;
enum Color: string
{
case Default = "default";
case Gray = "gray";
case Brown = "brown";
case Orange = "orange";
case Yellow = "yellow";
case Green = "green";
case Blue = "blue";
case Purple = "purple";
case Pink = "pink";
case Red = "red";
ca... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/ParentBlock.php | src/Common/ParentBlock.php | <?php
namespace Notion\Common;
/**
* @psalm-type ParentJson = array{
* type: string,
* database_id?: string,
* page_id?: string,
* block_id?: string,
* workspace?: true
* }
*/
class ParentBlock
{
private function __construct(
public readonly ParentType $type,
publi... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Common/Emoji.php | src/Common/Emoji.php | <?php
namespace Notion\Common;
/**
* @psalm-type EmojiJson = array{ type: "emoji", emoji: string }
*
* @psalm-immutable
*/
class Emoji
{
private function __construct(
public readonly string $emoji,
) {
}
public static function fromString(string $emoji): self
{
return new self(... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Comments/Client.php | src/Comments/Client.php | <?php
namespace Notion\Comments;
use Notion\Configuration;
use Notion\Infrastructure\Http;
/**
* @psalm-import-type CommentJson from \Notion\Comments\Comment
*/
class Client
{
/**
* @internal Use `\Notion\Notion::comments()` instead
*/
public function __construct(
private readonly Configu... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Comments/Comment.php | src/Comments/Comment.php | <?php
namespace Notion\Comments;
use DateTimeImmutable;
use Notion\Common\Date;
use Notion\Common\ParentBlock;
use Notion\Common\RichText;
/**
* @psalm-import-type ParentJson from \Notion\Common\ParentBlock
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type CommentJson = array{
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/Client.php | src/Search/Client.php | <?php
namespace Notion\Search;
use Notion\Configuration;
use Notion\Infrastructure\Http;
use stdClass;
/** @psalm-import-type ResultJson from \Notion\Search\Result */
class Client
{
/**
* @internal Use `\Notion\Notion::search()` instead
*/
public function __construct(
private readonly Confi... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/Result.php | src/Search/Result.php | <?php
namespace Notion\Search;
use Notion\Databases\Database;
use Notion\Pages\Page;
/**
* @psalm-immutable
*
* @psalm-import-type PageJson from \Notion\Pages\Page
* @psalm-import-type DatabaseJson from \Notion\Databases\Database
*
* @psalm-type ResultJson = array{
* object: string,
* results: arra... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/FilterProperty.php | src/Search/FilterProperty.php | <?php
namespace Notion\Search;
enum FilterProperty: string
{
case Object = "object";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/SortTimestamp.php | src/Search/SortTimestamp.php | <?php
namespace Notion\Search;
enum SortTimestamp: string
{
case LastEditedTime = "last_edited_time";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/Sort.php | src/Search/Sort.php | <?php
namespace Notion\Search;
/** @psalm-immutable */
class Sort
{
private function __construct(
public readonly SortDirection $direction,
public readonly SortTimestamp $timestamp,
) {
}
/** @psalm-mutation-free */
public static function create(): self
{
return new se... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/Query.php | src/Search/Query.php | <?php
namespace Notion\Search;
/** @psalm-immutable */
class Query
{
private function __construct(
public readonly string|null $query = null,
public readonly Filter|null $filter = null,
public readonly Sort|null $sort = null,
public readonly string|null $startCursor = null,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/Filter.php | src/Search/Filter.php | <?php
namespace Notion\Search;
/** @psalm-immutable */
class Filter
{
private function __construct(
public readonly FilterValue $value,
public readonly FilterProperty $property,
) {
}
/** @psalm-mutation-free */
public static function byPages(): self
{
return new self(... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/SortDirection.php | src/Search/SortDirection.php | <?php
namespace Notion\Search;
enum SortDirection: string
{
case Ascending = "ascending";
case Descending = "descending";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Search/FilterValue.php | src/Search/FilterValue.php | <?php
namespace Notion\Search;
enum FilterValue: string
{
case Page = "page";
case Database = "database";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Infrastructure/Http.php | src/Infrastructure/Http.php | <?php
namespace Notion\Infrastructure;
use Notion\Configuration;
use Notion\Exceptions\ApiException;
use Notion\Exceptions\ConflictException;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
class Http
{
public static function parseBody(ResponseInterface $response): array
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/PagesTest.php | tests/Integration/PagesTest.php | <?php
namespace Notion\Test\Integration;
use Notion\Common\Emoji;
use Notion\Exceptions\ApiException;
use Notion\Pages\Page;
use Notion\Pages\PageParent;
use PHPUnit\Framework\TestCase;
class PagesTest extends TestCase
{
public function test_create_empty_page(): void
{
$client = Helper::client();
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/UsersTest.php | tests/Integration/UsersTest.php | <?php
namespace Notion\Test\Integration;
use Notion\Exceptions\ApiException;
use PHPUnit\Framework\TestCase;
class UsersTest extends TestCase
{
public function test_find_current_user(): void
{
$client = Helper::client();
$user = $client->users()->me();
$sameUser = $client->users()->f... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/Helper.php | tests/Integration/Helper.php | <?php
namespace Notion\Test\Integration;
use Exception;
use Notion\Configuration;
use Notion\Notion;
use Notion\Pages\Page;
use Notion\Pages\PageParent;
final class Helper
{
public static function client(): Notion
{
$token = getenv("NOTION_TOKEN");
if (!$token) {
throw new Excepti... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/DatabasesTest.php | tests/Integration/DatabasesTest.php | <?php
namespace Notion\Test\Integration;
use DateTimeImmutable;
use Notion\Common\Color;
use Notion\Common\Emoji;
use Notion\Common\RichText;
use Notion\Databases\Database;
use Notion\Databases\DatabaseParent;
use Notion\Databases\Properties\Date;
use Notion\Databases\Properties\People;
use Notion\Databases\Propertie... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/CommentsTest.php | tests/Integration/CommentsTest.php | <?php
namespace Notion\Test\Integration;
use Notion\Comments\Comment;
use Notion\Common\RichText;
use Notion\Notion;
use Notion\Pages\Page;
use Notion\Pages\PageParent;
use PHPUnit\Framework\TestCase;
class CommentsTest extends TestCase
{
public function test_create_and_read_page_comment(): void
{
$n... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/BlocksTest.php | tests/Integration/BlocksTest.php | <?php
namespace Notion\Test\Integration;
use Notion\Blocks\BlockType;
use Notion\Blocks\Bookmark;
use Notion\Blocks\Breadcrumb;
use Notion\Blocks\BulletedListItem;
use Notion\Blocks\Callout;
use Notion\Blocks\Code;
use Notion\Blocks\CodeLanguage;
use Notion\Blocks\Column;
use Notion\Blocks\ColumnList;
use Notion\Bloc... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Integration/SearchTest.php | tests/Integration/SearchTest.php | <?php
namespace Notion\Test\Integration;
use Notion\Search\Query;
use PHPUnit\Framework\TestCase;
class SearchTest extends TestCase
{
public function test_search(): void
{
$client = Helper::client();
$testPage = $client->pages()->find(Helper::testPageId());
$title = $testPage->title(... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/ConfigurationTest.php | tests/Unit/ConfigurationTest.php | <?php
namespace Notion\Test\Unit;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
use Notion\Configuration;
use Notion\Notion;
use PHPUnit\Framework\TestCase;
final class ConfigurationTest extends TestCase
{
public function test_create_default_configuration(): void
{
$token = "secret_123abc";... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/NotionTest.php | tests/Unit/NotionTest.php | <?php
namespace Notion\Test\Unit;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
use Notion\Notion;
use PHPUnit\Framework\TestCase;
class NotionTest extends TestCase
{
public function test_custom_psr_implementation(): void
{
$psrClient = new Client();
$requestFactory = new HttpFactor... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ColumnTest.php | tests/Unit/Blocks/ColumnTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\Column;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Paragraph;
use PHPUnit\Framework\TestCase;
class ColumnTest extends TestCase
{
public function test_create_column(): void
{
$children = [ Paragraph::fromString("A paragraph.") ];... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ParagraphTest.php | tests/Unit/Blocks/ParagraphTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Paragraph;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class ParagraphTest extends TestCase
{
public function test_crea... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/TableOfContentsTest.php | tests/Unit/Blocks/TableOfContentsTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Blocks\TableOfContents;
use Notion\Common\Color;
use Notion\Common\Date;
use PHPUnit\Framework\TestCase;
class TableOfContentsTest extends TestCase
{
public funct... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ChildDatabaseTest.php | tests/Unit/Blocks/ChildDatabaseTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\ChildDatabase;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use PHPUnit\Framework\TestCase;
class ChildDatabaseTest extends TestCase
{
public function test_array_conversion(): void
{
$arra... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ImageTest.php | tests/Unit/Blocks/ImageTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Image;
use Notion\Blocks\Paragraph;
use Notion\Common\Date;
use Notion\Common\File;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class ImageTest extends TestCase
{
publi... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/FileBlockTest.php | tests/Unit/Blocks/FileBlockTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\FileBlock;
use Notion\Blocks\Paragraph;
use Notion\Common\Date;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class FileBlockTest extends TestCase
{
public function test_crea... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/BookmarkTest.php | tests/Unit/Blocks/BookmarkTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Bookmark;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class BookmarkTest extends TestCase
{
public function test_cr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/TableTest.php | tests/Unit/Blocks/TableTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockType;
use Notion\Blocks\Table;
use Notion\Blocks\TableRow;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class TableTest extends TestCase
{
public function test_crate_empty_table(): void
{
$table = Table::create();
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/BulletedListItemTest.php | tests/Unit/Blocks/BulletedListItemTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\BulletedListItem;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class BulletedListItemTest extends TestCase
{
public func... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/UnknownTest.php | tests/Unit/Blocks/UnknownTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\BlockType;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Unknown;
use PHPUnit\Framework\TestCase;
class UnknownTest extends TestCase
{
/** @var array{ type: string, ... } */
private array $rawBlock = [
"object... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ChildPageTest.php | tests/Unit/Blocks/ChildPageTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\ChildPage;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use PHPUnit\Framework\TestCase;
class ChildPageTest extends TestCase
{
public function test_create_from_array(): void
{
$array = [
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ToDoTest.php | tests/Unit/Blocks/ToDoTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\ToDo;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class ToDoTest extends TestCase
{
public function test_create_empty_t... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Heading2Test.php | tests/Unit/Blocks/Heading2Test.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Heading2;
use Notion\Blocks\Paragraph;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
use PHPUnit\Framework\TestCase;
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/BreadcrumbTest.php | tests/Unit/Blocks/BreadcrumbTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Breadcrumb;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use PHPUnit\Framework\TestCase;
class BreadcrumbTest extends TestCase
{
public function test_create_breadcrumb(): void
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/BlockMetadataTest.php | tests/Unit/Blocks/BlockMetadataTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockMetadata;
use Notion\Blocks\BlockType;
use Notion\Exceptions\BlockException;
use PHPUnit\Framework\TestCase;
class BlockMetadataTest extends TestCase
{
public function test_restore(): void
{
$metadata = BlockMetadata::create(BlockType::P... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/VideoTest.php | tests/Unit/Blocks/VideoTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Video;
use Notion\Common\Date;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class VideoTest extends TestCase
{
public function test_create_video... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/NumberedListItemTest.php | tests/Unit/Blocks/NumberedListItemTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\NumberedListItem;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class NumberedListItemTest extends TestCase
{
public func... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ColumnListTest.php | tests/Unit/Blocks/ColumnListTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Column;
use Notion\Blocks\ColumnList;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\ColumnListException;
use PHPUnit\Framework\TestCase;
class ColumnListTest extends TestCase
{
pu... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/LinkPreviewTest.php | tests/Unit/Blocks/LinkPreviewTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\LinkPreview;
use Notion\Blocks\Paragraph;
use PHPUnit\Framework\TestCase;
class LinkPreviewTest extends TestCase
{
public function test_array_conversion(): void
{
$array = ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/QuoteTest.php | tests/Unit/Blocks/QuoteTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Quote;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class QuoteTest extends TestCase
{
public function test_create_empty... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/PdfTest.php | tests/Unit/Blocks/PdfTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Pdf;
use Notion\Common\Date;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class PdfTest extends TestCase
{
public function test_create_pdf(): vo... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/CodeTest.php | tests/Unit/Blocks/CodeTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Code;
use Notion\Blocks\CodeLanguage;
use Notion\Blocks\Divider;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class CodeTest extends TestCase
{
p... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/DividerTest.php | tests/Unit/Blocks/DividerTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Divider;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use PHPUnit\Framework\TestCase;
class DividerTest extends TestCase
{
public function test_create_divider(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Heading1Test.php | tests/Unit/Blocks/Heading1Test.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Heading1;
use Notion\Blocks\Paragraph;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
use PHPUnit\Framework\TestCase;
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/ToggleTest.php | tests/Unit/Blocks/ToggleTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Toggle;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class ToggleTest extends TestCase
{
public function test_create_emp... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/CalloutTest.php | tests/Unit/Blocks/CalloutTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Callout;
use Notion\Common\Color;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use Notion\Common\Emoji;
use Notion\Common\File;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class CalloutTest ext... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/EmbedTest.php | tests/Unit/Blocks/EmbedTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\Embed;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use PHPUnit\Framework\TestCase;
class EmbedTest extends TestCase
{
public function test_create_embed(): void
{
$... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Heading3Test.php | tests/Unit/Blocks/Heading3Test.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Exceptions\BlockException;
use Notion\Blocks\Heading3;
use Notion\Blocks\Paragraph;
use Notion\Common\Color;
use Notion\Common\Date;
use Notion\Common\RichText;
use Notion\Exceptions\HeadingException;
use PHPUnit\Framework\TestCase;
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/EquationBlockTest.php | tests/Unit/Blocks/EquationBlockTest.php | <?php
namespace Notion\Test\Unit\Blocks;
use Notion\Blocks\BlockFactory;
use Notion\Blocks\EquationBlock;
use Notion\Blocks\Paragraph;
use Notion\Exceptions\BlockException;
use Notion\Common\Date;
use Notion\Common\Equation;
use PHPUnit\Framework\TestCase;
class EquationBlockTest extends TestCase
{
public functi... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/MarkdownRendererTest.php | tests/Unit/Blocks/Renderer/MarkdownRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer;
use Notion\Blocks\BulletedListItem;
use Notion\Blocks\Heading1;
use Notion\Blocks\Heading2;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\MarkdownRenderer;
use PHPUnit\Framework\TestCase;
class MarkdownRendererTest extends TestCase
{
public function tes... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/Heading3RendererTest.php | tests/Unit/Blocks/Renderer/Markdown/Heading3RendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Heading3;
use Notion\Blocks\Renderer\Markdown\Heading3Renderer;
use PHPUnit\Framework\TestCase;
class Heading3RendererTest extends TestCase
{
public function test_render(): void
{
$block = Heading3... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/BulletedListItemRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/BulletedListItemRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\BulletedListItem;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\BulletedListItemRenderer;
use PHPUnit\Framework\TestCase;
class BulletedListItemRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/DividerRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/DividerRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Breadcrumb;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\DividerRenderer;
use PHPUnit\Framework\TestCase;
class DividerRendererTest extends TestCase
{
public function test_render(): void
{
$block = Divider:... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/LinkPreviewRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/LinkPreviewRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\LinkPreview;
use Notion\Blocks\Renderer\Markdown\LinkPreviewRenderer;
use PHPUnit\Framework\TestCase;
class LinkPreviewRendererTest extends TestCase
{
public function test_render(): void
{
$block =... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ToDoRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ToDoRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\ToDo;
use Notion\Blocks\Renderer\Markdown\ToDoRenderer;
use PHPUnit\Framework\TestCase;
class ToDoRendererTest extends TestCase
{
public function test_render(): void
{
$block = ToDo::fromString("It... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/NumberedListItemRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/NumberedListItemRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\NumberedListItem;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\NumberedListItemRenderer;
use PHPUnit\Framework\TestCase;
class NumberedListItemRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/EquationRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/EquationRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\EquationBlock;
use Notion\Blocks\Renderer\Markdown\EquationRenderer;
use PHPUnit\Framework\TestCase;
class EquationRendererTest extends TestCase
{
public function test_render(): void
{
$block = Equ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ImageRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ImageRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Image;
use Notion\Blocks\Renderer\Markdown\ImageRenderer;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class ImageRendererTest extends TestCase
{
public function test_render(): void
{
$b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/Heading1RendererTest.php | tests/Unit/Blocks/Renderer/Markdown/Heading1RendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Heading1;
use Notion\Blocks\Renderer\Markdown\Heading1Renderer;
use PHPUnit\Framework\TestCase;
class Heading1RendererTest extends TestCase
{
public function test_render(): void
{
$block = Heading1... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/Heading2RendererTest.php | tests/Unit/Blocks/Renderer/Markdown/Heading2RendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Heading2;
use Notion\Blocks\Renderer\Markdown\Heading2Renderer;
use PHPUnit\Framework\TestCase;
class Heading2RendererTest extends TestCase
{
public function test_render(): void
{
$block = Heading2... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ParagraphRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ParagraphRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\Markdown\ParagraphRenderer;
use Notion\Common\Equation;
use Notion\Common\RichText;
use PHPUnit\Framework\TestCase;
class ParagraphRendererTest extends TestCase
{
public f... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ColumnRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ColumnRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Column;
use Notion\Blocks\ColumnList;
use Notion\Blocks\Divider;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\Markdown\ColumnListRenderer;
use Notion\Blocks\Renderer\Markdown\ColumnRenderer;
use PHPUnit\Framework\TestCase;
class ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ChildPageRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ChildPageRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\ChildPage;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\ChildPageRenderer;
use PHPUnit\Framework\TestCase;
class ChildPageRendererTest extends TestCase
{
public function test_render(): void
{
$block = Child... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ChildDatabaseRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ChildDatabaseRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\ChildDatabase;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\ChildDatabaseRenderer;
use PHPUnit\Framework\TestCase;
class ChildDatabaseRendererTest extends TestCase
{
public function test_render(): void
{
$b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/EmbedRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/EmbedRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Embed;
use Notion\Blocks\Renderer\Markdown\EmbedRenderer;
use PHPUnit\Framework\TestCase;
class EmbedRendererTest extends TestCase
{
public function test_render(): void
{
$block = Embed::fromUrl("h... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/QuoteRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/QuoteRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Quote;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\Markdown\QuoteRenderer;
use PHPUnit\Framework\TestCase;
class QuoteRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/CodeRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/CodeRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Code;
use Notion\Blocks\CodeLanguage;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\CodeRenderer;
use PHPUnit\Framework\TestCase;
class CodeRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/VideoRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/VideoRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Video;
use Notion\Blocks\Renderer\Markdown\VideoRenderer;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class VideoRendererTest extends TestCase
{
public function test_render(): void
{
$b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/BreadcrumbRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/BreadcrumbRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Breadcrumb;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\BreadcrumbRenderer;
use PHPUnit\Framework\TestCase;
class BreadcrumbRendererTest extends TestCase
{
public function test_render(): void
{
$block = Br... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/CalloutRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/CalloutRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Callout;
use Notion\Blocks\Divider;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\Markdown\CalloutRenderer;
use PHPUnit\Framework\TestCase;
class CalloutRendererTest extends TestCase
{
public function test_render(): void
{... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/FileRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/FileRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\FileBlock;
use Notion\Blocks\Renderer\Markdown\FileRenderer;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class FileRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/TableOfContentsRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/TableOfContentsRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\TableOfContents;
use Notion\Blocks\Renderer\Markdown\TableOfContentsRenderer;
use PHPUnit\Framework\TestCase;
class TableOfContentsRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/ToggleRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/ToggleRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Toggle;
use Notion\Blocks\Renderer\Markdown\ToggleRenderer;
use PHPUnit\Framework\TestCase;
class ToggleRendererTest extends TestCase
{
public function test_render(): void
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/PdfRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/PdfRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Divider;
use Notion\Blocks\Pdf;
use Notion\Blocks\Renderer\Markdown\PdfRenderer;
use Notion\Common\File;
use PHPUnit\Framework\TestCase;
class PdfRendererTest extends TestCase
{
public function test_render(): void
{
$block =... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Blocks/Renderer/Markdown/BookmarkRendererTest.php | tests/Unit/Blocks/Renderer/Markdown/BookmarkRendererTest.php | <?php
namespace Notion\Test\Unit\Blocks\Renderer\Markdown;
use Notion\Blocks\Bookmark;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\Markdown\BookmarkRenderer;
use Notion\Blocks\Unknown;
use PHPUnit\Framework\TestCase;
class BookmarkRendererTest extends TestCase
{
public function test_render(): void
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Users/UserTest.php | tests/Unit/Users/UserTest.php | <?php
namespace Notion\Test\Unit\Users;
use Notion\Users\User;
use Notion\Users\UserType;
use PHPUnit\Framework\TestCase;
class UserTest extends TestCase
{
public function test_person_from_array(): void
{
$array = [
"object" => "user",
"id" => "b0688871-85db-4637-8... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Exceptions/ApiExceptionTest.php | tests/Unit/Exceptions/ApiExceptionTest.php | <?php
namespace Notion\Test\Unit\Exceptions;
use GuzzleHttp\Psr7\Response;
use Notion\Exceptions\ApiException;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
class ApiExceptionTest extends TestCase
{
public function test_from_response_body(): void
{
$body = '{
"ob... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/tests/Unit/Pages/PageParentTest.php | tests/Unit/Pages/PageParentTest.php | <?php
namespace Notion\Test\Unit\Pages;
use Notion\Pages\PageParent;
use Notion\Pages\PageParentType;
use PHPUnit\Framework\TestCase;
class PageParentTest extends TestCase
{
public function test_create_parent_database(): void
{
$parent = PageParent::database("058d158b-09de-4d69-be07-901c20a7ca5c");
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.